summaryrefslogtreecommitdiff
path: root/sys-boot/myinitramfs/files/initramfs_password
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2020-02-25 17:47:58 +0100
committerKarel Kočí <karel.koci@nic.cz>2020-02-25 17:52:55 +0100
commitd6205d3a165e01d6c427e9160f36b51cfdc4e2b4 (patch)
treece631e293026850429049457aecdef226310fc06 /sys-boot/myinitramfs/files/initramfs_password
parent67320a1307feada9e25a3f08e8aba7179004d85c (diff)
downloadgentoo-personal-overlay-d6205d3a165e01d6c427e9160f36b51cfdc4e2b4.tar.gz
gentoo-personal-overlay-d6205d3a165e01d6c427e9160f36b51cfdc4e2b4.tar.bz2
gentoo-personal-overlay-d6205d3a165e01d6c427e9160f36b51cfdc4e2b4.zip
sys-boot/myinitramfs: extend to optionally autounlock
Diffstat (limited to 'sys-boot/myinitramfs/files/initramfs_password')
-rwxr-xr-xsys-boot/myinitramfs/files/initramfs_password6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys-boot/myinitramfs/files/initramfs_password b/sys-boot/myinitramfs/files/initramfs_password
new file mode 100755
index 0000000..8ad64bb
--- /dev/null
+++ b/sys-boot/myinitramfs/files/initramfs_password
@@ -0,0 +1,6 @@
+#!/bin/sh
+{
+ dmidecode -s system-uuid
+ dmidecode -s baseboard-serial-number
+ dmidecode -s processor-version
+} | sha512sum | cut -f1 -d ' '