This commit is contained in:
teldra 2022-02-07 15:57:17 +01:00
parent 9d779c07eb
commit 99ecc78a12
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ sed -i "/^GRUB_CMDLINE_LINUX_DEFAULT/s/=\"/=\"rd.lvm.vg=vg_${TARGETNAME_UNDERSCO
if [ "$ENCRYPTION_STYLE" == "a" ] || [ "$ENCRYPTION_STYLE" == "d" ]; then
dd bs=1 count=64 if=/dev/urandom of=/boot/volume.key
cryptsetup luksAddKey $TARGET_PHY_ID-part${TARGET_PART} /boot/volume.key
echo -n $pass | cryptsetup luksAddKey $TARGET_PHY_ID-part${TARGET_PART} /boot/volume.key
chmod 000 /boot/volume.key
chmod -R g-rwx,o-rwx /boot
echo "luks_${TARGETNAME_UNDERSCORE} $TARGET_PHY_ID-part${TARGET_PART} /boot/volume.key luks" >> /etc/crypttab