Do not unmount ISO loopback mount point in finalize().
[grml-debootstrap.git] / grml-debootstrap
index 8c063cd..30e9c79 100755 (executable)
@@ -11,7 +11,7 @@ set -e # exit on any error
 
 # variables {{{
 PN="$(basename $0)"
-VERSION='0.36'
+VERSION='0.37'
 MNTPOINT="/mnt/debootstrap.$$"
 
 # inside the chroot system locales might not be available, so use minimum:
@@ -1001,12 +1001,6 @@ done
 # }}}
 
 # finalize {{{
-if [ -n "$ISODIR" ] ; then
-   einfo "Unmounting Debian image loopback from $MNTPOINT/$ISODIR."
-   umount "$MNTPOINT/$ISODIR"
-   eend $?
-fi
-
 einfo "Removing ${CHROOT_VARIABLES}" ; rm "$CHROOT_VARIABLES" ; eend $?
 einfo "Removing ${STAGES}" ; rmdir "$STAGES" ; eend $?