Unmount loopback device at the end too
authorMichael Prokop <mika@grml.org>
Tue, 5 Jun 2007 12:02:33 +0000 (14:02 +0200)
committerMichael Prokop <mika@grml.org>
Tue, 5 Jun 2007 12:02:33 +0000 (14:02 +0200)
grml-debootstrap

index 2a36d4e..990566f 100755 (executable)
@@ -4,7 +4,7 @@
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2.
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2.
-# Latest change: Die Jun 05 13:51:21 CEST 2007 [mika]
+# Latest change: Die Jun 05 14:02:22 CEST 2007 [mika]
 ################################################################################
 # http://www.debian.org/releases/stable/i386/index.html.en
 
 ################################################################################
 # http://www.debian.org/releases/stable/i386/index.html.en
 
@@ -385,6 +385,11 @@ grub_install() {
 
 # unmount $MNTPOINRT {{{
 umount_chroot() {
 
 # unmount $MNTPOINRT {{{
 umount_chroot() {
+  if [ -n "$ISODIR" ] ; then
+     einfo "Unmount $MNTPOINT/$ISODIR"
+     umount "$MNTPOINT/$ISODIR"
+     eend $?
+  fi
   if [ -n "$PARTITION" ] ; then
      einfo "Unmount $MNTPOINT"
      umount $MNTPOINT
   if [ -n "$PARTITION" ] ; then
      einfo "Unmount $MNTPOINT"
      umount $MNTPOINT