new
This commit is contained in:
parent
5244f566c9
commit
a742eeab25
2
main.sh
2
main.sh
|
@ -136,7 +136,7 @@ do_partition() {
|
||||||
TARGETNAME="$(basename "${TARGET_PHY_ID}-part${TARGET_PART}")"
|
TARGETNAME="$(basename "${TARGET_PHY_ID}-part${TARGET_PART}")"
|
||||||
TARGETNAME_UNDERSCORE="${TARGETNAME//-/_}"
|
TARGETNAME_UNDERSCORE="${TARGETNAME//-/_}"
|
||||||
T="${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" ] || [ "${ENCRYPTION_STYLE}" == "e" ]; 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 -
|
||||||
#echo -n "${PASS}" | sudo cryptsetup luksOpen /dev/sdc1 sdc1 -d -
|
#echo -n "${PASS}" | sudo cryptsetup luksOpen /dev/sdc1 sdc1 -d -
|
||||||
|
|
Loading…
Reference in New Issue