From 22a94ea2e57cc4042a512559a5d7d417e2588060 Mon Sep 17 00:00:00 2001 From: teldra Date: Tue, 8 Feb 2022 19:02:57 +0100 Subject: [PATCH] progress --- main.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.sh b/main.sh index 16fcd9a..f8a45ea 100755 --- a/main.sh +++ b/main.sh @@ -134,9 +134,9 @@ do_partition() { T="${TARGET_PHY_ID}-part${TARGET_PART}" if [ "${ENCRYPTION_STYLE}" == "a" ] || [ "${ENCRYPTION_STYLE}" == "c" ] || [ "${ENCRYPTION_STYLE}" == "d" ]; then T="/dev/mapper/luks_${TARGETNAME_UNDERSCORE}" - echo -n $pass | cryptsetup luksFormat --type luks1 "${TARGET_PHY_ID}-part${TARGET_PART}" -d - - #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 - + echo -n "${PASS}" | cryptsetup luksFormat --type luks1 "${TARGET_PHY_ID}-part${TARGET_PART}" -d - + #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 -y --force "vg_${TARGETNAME_UNDERSCORE}" "${T}" lvcreate -y --name swap -L "${SWAPSIZE}G" "vg_${TARGETNAME_UNDERSCORE}"