Browse Source

bugfixing for ubuntu 20.04

master
Michael Preisach 6 years ago
parent
commit
e621354bc9
  1. 2
      create-luks-tpm.sh
  2. 4
      install.sh
  3. 1
      tpm2-hook.sh

2
create-luks-tpm.sh

@ -1,4 +1,4 @@
#!bin/bash #!/bin/bash
set -e set -e
CRYPTFS=/dev/nvme0n1p3 CRYPTFS=/dev/nvme0n1p3

4
install.sh

@ -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 ./create-luks-tpm.sh /usr/sbin || exit 1
cp -vf ./tpm2-hook.sh /etc/initramfs-tools/hooks/ || exit 2 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/create-luks-tpm.sh
/usr/sbin/update-kernel.sh
echo "Installed successfully! Please reboot and execute update-luks-tpm.sh afterwards"

1
tpm2-hook.sh

@ -3,3 +3,4 @@ if [ "$1" = "prereqs" ]; then exit 0; fi
. /usr/share/initramfs-tools/hook-functions . /usr/share/initramfs-tools/hook-functions
copy_exec /usr//bin/tpm2_unseal copy_exec /usr//bin/tpm2_unseal
copy_exec /usr/lib/x86_64-linux-gnu/libtss2-tcti-device.so.0 copy_exec /usr/lib/x86_64-linux-gnu/libtss2-tcti-device.so.0
copy_exec /usr/sbin/passphrase-from-tpm.sh

Loading…
Cancel
Save