little luks fix

This commit is contained in:
farhan 2022-03-03 17:54:24 +00:00
parent 6d36dbb97a
commit db1f70a23d
1 changed files with 1 additions and 5 deletions

View File

@ -109,11 +109,7 @@ elif [[ "${FS}" == "luks" ]]; then
echo -n "${LUKS_PASSWORD}" | cryptsetup -y -v luksFormat ${partition3} - echo -n "${LUKS_PASSWORD}" | cryptsetup -y -v luksFormat ${partition3} -
# open luks container and ROOT will be place holder # open luks container and ROOT will be place holder
echo -n "${LUKS_PASSWORD}" | cryptsetup open ${partition3} ROOT - echo -n "${LUKS_PASSWORD}" | cryptsetup open ${partition3} ROOT -
# now format that container do_btrfs "ROOT" "${partition3}"
mkfs.btrfs -L ROOT ${partition3}
# create subvolumes for btrfs
mount -t btrfs ${partition3} /mnt
subvolumesetup
# store uuid of encrypted partition for grub # store uuid of encrypted partition for grub
echo ENCRYPTED_PARTITION_UUID=$(blkid -s UUID -o value ${partition3}) >> $CONFIGS_DIR/setup.conf echo ENCRYPTED_PARTITION_UUID=$(blkid -s UUID -o value ${partition3}) >> $CONFIGS_DIR/setup.conf
fi fi