From 4043600348e957f4fe70a54ecb6cbeba11826fa0 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Tue, 1 Mar 2022 08:51:49 -0600 Subject: [PATCH] Fix LUKS not overwriting filesystem --- scripts/0-preinstall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/0-preinstall.sh b/scripts/0-preinstall.sh index b289307..f3ed43d 100755 --- a/scripts/0-preinstall.sh +++ b/scripts/0-preinstall.sh @@ -121,7 +121,7 @@ elif [[ "${FS}" == "luks" ]]; then # open luks container and ROOT will be place holder echo -n "${LUKS_PASSWORD}" | cryptsetup open ${partition3} ROOT - # now format that container - mkfs.btrfs -L ROOT ${partition3} + mkfs.btrfs -L ROOT ${partition3} -f # create subvolumes for btrfs mount -t btrfs ${partition3} /mnt subvolumesetup