This commit is contained in:
teldra 2022-02-07 23:12:05 +01:00
parent 6236822b9b
commit a5729f5954

View File

@ -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 -