diff --git a/ubuntu/1-pre-install.sh b/ubuntu/1-pre-install.sh index a7aa411..db04848 100644 --- a/ubuntu/1-pre-install.sh +++ b/ubuntu/1-pre-install.sh @@ -72,7 +72,7 @@ fi printf %s "${PASSPHRASE}" | cryptsetup open -d - "${DEV}${CRYPTPARTITION}" ${CRYPTPARTNAME} # Check whether successful open. If mapped, it is successful. -if [ ! -d /dev/mapper/${CRYPTPARTNAME} ] ; then +if [ ! -e /dev/mapper/${CRYPTPARTNAME} ] ; then cat <&2 ***** ERROR : Cannot open LUKS volume ${CRYPTPARTNAME} on ${DEV}${CRYPTPARTITION}. ***** Check the passphrase