Fix luks umount

parent 0fc77659
Pipeline #235 failed with stage
......@@ -23,11 +23,11 @@ do_clean(){
then
fusermount -zu $encfsmount
fi
umount -f $dev
if $luks
then
cryptsetup luksClose $luksname
fi
umount -f $dev
}
# If $1 is not 0, exit with message $2
......@@ -304,11 +304,11 @@ do_log "démarrage le `date`"
if $luks
then
umount -f $dest
cryptsetup luksClose $luksname
echo $ENCPASS | cryptsetup luksOpen $dev $luksname
test_and_fail $? "Impossible de déchiffrer le disque, abandon"
/bin/mount -t auto /dev/mapper/$luksname $dest
echo "OK" > $dest/test
else
/bin/mount -t auto $dev $dest
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment