From e6d9caf4e430624d461eacbc7f09d1cdb400daea Mon Sep 17 00:00:00 2001 From: teldra Date: Tue, 8 Feb 2022 17:08:42 +0100 Subject: [PATCH] progress --- main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.sh b/main.sh index 60c259c..08f7c28 100755 --- a/main.sh +++ b/main.sh @@ -134,7 +134,7 @@ do_partition() { #echo -n $pass | sudo cryptsetup luksOpen /dev/sdc1 sdc1 -d - echo -n $pass | cryptsetup luksOpen "${TARGET_PHY_ID}-part${TARGET_PART}" "luks_${TARGETNAME_UNDERSCORE}" -d - fi - vgcreate "vg_${TARGETNAME_UNDERSCORE}" "${T}" + vgcreate --force "vg_${TARGETNAME_UNDERSCORE}" "${T}" lvcreate --name swap -L "${SWAPSIZE}G" "vg_${TARGETNAME_UNDERSCORE}" lvcreate --name root -l 100%FREE "vg_${TARGETNAME_UNDERSCORE}" mkswap -f "/dev/mapper/vg_${TARGETNAME_UNDERSCORE}-swap"