progress
This commit is contained in:
parent
6236822b9b
commit
a5729f5954
2
main.sh
2
main.sh
|
@ -126,7 +126,7 @@ do_partition() {
|
||||||
sleep 2
|
sleep 2
|
||||||
TARGETNAME="$(basename "${TARGET_PHY_ID}-part${TARGET_PART}")"
|
TARGETNAME="$(basename "${TARGET_PHY_ID}-part${TARGET_PART}")"
|
||||||
TARGETNAME_UNDERSCORE="${TARGETNAME//-/_}"
|
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
|
if [ "${ENCRYPTION_STYLE}" == "a" ] || [ "${ENCRYPTION_STYLE}" == "c" ] || [ "${ENCRYPTION_STYLE}" == "d" ]; then
|
||||||
T="/dev/mapper/luks_${TARGETNAME_UNDERSCORE}"
|
T="/dev/mapper/luks_${TARGETNAME_UNDERSCORE}"
|
||||||
echo -n $pass | cryptsetup luksFormat --type luks1 "${TARGET_PHY_ID}-part${TARGET_PART}" -d -
|
echo -n $pass | cryptsetup luksFormat --type luks1 "${TARGET_PHY_ID}-part${TARGET_PART}" -d -
|
||||||
|
|
Loading…
Reference in New Issue
Block a user