diff --git a/entry.sh b/entry.sh index 46355c2..246ef67 100755 --- a/entry.sh +++ b/entry.sh @@ -11,9 +11,9 @@ function first_stage(){ echo -n luks_password: read -s luks_password - if [ -b /dev/mapper/cryptlvm ]; then + if [[ -b /dev/mapper/cryptlvm ]]; then cryptsetup luksClose cryptlvm - close + fi wipefs -a ${DEVICE}