|
|
|
@ -7,6 +7,8 @@ cp -vf ./update-kernel.sh /usr/sbin || exit 1 |
|
|
|
cp -vf ./create-luks-tpm.sh /usr/sbin || exit 1 |
|
|
|
|
|
|
|
cp -vf ./tpm2-hook.sh /etc/initramfs-tools/hooks/ || exit 2 |
|
|
|
sed '/luks/$/,discard,initramfs,keyscript=/usr/sbin/passphrase-from-tpm.sh/' /etc/crypttab |
|
|
|
awk -i inplace '/luks/{print $0 ",discard,initramfs,keyscript=/usr/sbin/passphrase-from-tpm.sh"}' /etc/crypttab |
|
|
|
|
|
|
|
/usr/sbin/create-luks-tpm.sh |
|
|
|
/usr/sbin/update-kernel.sh |
|
|
|
echo "Installed successfully! Please reboot and execute update-luks-tpm.sh afterwards" |
|
|
|
|