From 1dc09f11004c6c0a7bf8ca7c803449f1d6278cb8 Mon Sep 17 00:00:00 2001 From: teldra Date: Tue, 8 Feb 2022 17:37:40 +0100 Subject: [PATCH] progress --- main.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.sh b/main.sh index 2834611..6a460f5 100755 --- a/main.sh +++ b/main.sh @@ -136,9 +136,9 @@ 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 --force "vg_${TARGETNAME_UNDERSCORE}" "${T}" - lvcreate --name swap -L "${SWAPSIZE}G" "vg_${TARGETNAME_UNDERSCORE}" - lvcreate --name root -l 100%FREE "vg_${TARGETNAME_UNDERSCORE}" + vgcreate -y --force "vg_${TARGETNAME_UNDERSCORE}" "${T}" + lvcreate -y --name swap -L "${SWAPSIZE}G" "vg_${TARGETNAME_UNDERSCORE}" + lvcreate -y --name root -l 100%FREE "vg_${TARGETNAME_UNDERSCORE}" mkswap -f "/dev/mapper/vg_${TARGETNAME_UNDERSCORE}-swap" mkfs.btrfs -f "/dev/mapper/vg_${TARGETNAME_UNDERSCORE}-root" mount "/dev/mapper/vg_${TARGETNAME_UNDERSCORE}-root" "${target}"