Correct bug on LUKS bad confirmation
This commit is contained in:
parent
938e10d32d
commit
b87edc6fbc
1 changed files with 8 additions and 0 deletions
8
archfi
8
archfi
|
@ -571,10 +571,18 @@ formatdevice(){
|
||||||
echo "$txtcreateluksdevice"
|
echo "$txtcreateluksdevice"
|
||||||
echo "cryptsetup luksFormat $2"
|
echo "cryptsetup luksFormat $2"
|
||||||
cryptsetup luksFormat $2
|
cryptsetup luksFormat $2
|
||||||
|
if [ ! "$?" = "0"];then
|
||||||
|
pressanykey
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
echo ""
|
echo ""
|
||||||
echo "$txtopenluksdevice"
|
echo "$txtopenluksdevice"
|
||||||
echo "cryptsetup luksOpen $2 $1"
|
echo "cryptsetup luksOpen $2 $1"
|
||||||
cryptsetup luksOpen $2 $1
|
cryptsetup luksOpen $2 $1
|
||||||
|
if [ ! "$?" = "0"];then
|
||||||
|
pressanykey
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
options=()
|
options=()
|
||||||
options+=("normal" "")
|
options+=("normal" "")
|
||||||
options+=("fast" "")
|
options+=("fast" "")
|
||||||
|
|
Loading…
Reference in a new issue