From a742eeab25e3ea706be0fd0cd753f2392be376c7 Mon Sep 17 00:00:00 2001 From: teldra Date: Fri, 5 Aug 2022 14:31:20 +0200 Subject: [PATCH] new --- main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.sh b/main.sh index 30f058e..8c55634 100755 --- a/main.sh +++ b/main.sh @@ -136,7 +136,7 @@ do_partition() { TARGETNAME="$(basename "${TARGET_PHY_ID}-part${TARGET_PART}")" TARGETNAME_UNDERSCORE="${TARGETNAME//-/_}" T="${TARGET_PHY_ID}-part${TARGET_PART}" - if [ "${ENCRYPTION_STYLE}" == "a" ] || [ "${ENCRYPTION_STYLE}" == "c" ] || [ "${ENCRYPTION_STYLE}" == "d" ]; then + if [ "${ENCRYPTION_STYLE}" == "a" ] || [ "${ENCRYPTION_STYLE}" == "c" ] || [ "${ENCRYPTION_STYLE}" == "d" ] || [ "${ENCRYPTION_STYLE}" == "e" ]; 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 -