diff --git a/main.sh b/main.sh index f3af35e..ef7ee1b 100644 --- a/main.sh +++ b/main.sh @@ -126,7 +126,7 @@ do_partition() { sleep 2 TARGETNAME="$(basename "${TARGET_PHY_ID}-part${TARGET_PART}")" TARGETNAME_UNDERSCORE="${TARGETNAME//-/_}" - T="/dev/disk/by-id/${TARGET_PHY_ID}-part${TARGET_PART}" + 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 -