From a7c48adc9ecd569744225e3b417b49073b3c2821 Mon Sep 17 00:00:00 2001 From: Suikan <26223147+suikan4github@users.noreply.github.com> Date: Mon, 28 Jun 2021 23:15:14 +0900 Subject: [PATCH] Fix bug of the file existing check --- ubuntu/1-pre-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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