Merge pull request #53 from davinerd/fix_remove_mountpoint_51

Removing default mount point when umounting the tomb
This commit is contained in:
Jaromil 2011-10-25 15:14:29 -07:00
commit 5d54a3b121

View File

@ -955,9 +955,12 @@ umount_tomb() {
if ! [ $? = 0 ]; then
error "Tomb is busy, cannot umount!"
else
# this means we used a "default" mount point
if [ "${tombmount}" = "/media/${tombname}.tomb" ]; then
rmdir ${tombmount}
fi
fi
fi
cryptsetup luksClose $mapper
if ! [ $? = 0 ]; then