1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-04 00:17:06 +00:00

Avoid a non-fatal error. This should be understood better.

This commit is contained in:
downtownallday 2020-06-27 17:56:46 -04:00
parent 310fd259ff
commit 014d8a8770

View File

@ -35,6 +35,8 @@ if [ ! -e "$EHDD_IMG" ]; then
echo "NOTE: You will need to reenter your drive encryption password"
cryptsetup luksOpen $(keyfile_option) $loop $EHDD_LUKS_NAME # map device to /dev/mapper/NAME
mke2fs -j /dev/mapper/$EHDD_LUKS_NAME
# sleep a brief time to avoid "device busy"
sleep 2
cryptsetup luksClose $EHDD_LUKS_NAME
losetup -d $loop
else