Fix LUKS not overwriting filesystem

This commit is contained in:
Austin Horstman 2022-03-01 08:51:49 -06:00
parent ec31e24725
commit 4043600348
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ elif [[ "${FS}" == "luks" ]]; then
# 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 # now format that container
mkfs.btrfs -L ROOT ${partition3} mkfs.btrfs -L ROOT ${partition3} -f
# create subvolumes for btrfs # create subvolumes for btrfs
mount -t btrfs ${partition3} /mnt mount -t btrfs ${partition3} /mnt
subvolumesetup subvolumesetup