Don't require user interaction for passphrase.

This commit is contained in:
James Patrick 2021-11-15 09:53:12 -05:00
parent 2397e4a7a5
commit 46251e8f43

View File

@ -52,7 +52,8 @@ configure_luks:
echo $(PASSPHRASE) | cryptsetup luksAddKey \ echo $(PASSPHRASE) | cryptsetup luksAddKey \
/dev/disk/by-partlabel/crypt \ /dev/disk/by-partlabel/crypt \
--key-file /tmp/keyfile --key-file /tmp/keyfile
cryptsetup luksOpen /dev/disk/by-partlabel/crypt root echo $(PASSPHRASE) | cryptsetup luksOpen \
/dev/disk/by-partlabel/crypt root
cryptsetup luksRemoveKey /dev/disk/by-partlabel/crypt /tmp/keyfile cryptsetup luksRemoveKey /dev/disk/by-partlabel/crypt /tmp/keyfile
configure_lvm: configure_lvm: