X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=ae1f80d39fc6d9198da6e1330b33bba5cede5f94;hp=cbd131abc4e0bf058f9bd2315fb80477f6312aa8;hb=8d3fd17fcc92984f69b859fa9d731049167dbf40;hpb=cba387c584bdf456daae4d60a7213c0153cb3f84 diff --git a/grml-debootstrap b/grml-debootstrap index cbd131a..ae1f80d 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -4,7 +4,7 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Die Jun 05 14:04:47 CEST 2007 [mika] +# Latest change: Die Jun 05 14:06:21 CEST 2007 [mika] ################################################################################ # http://www.debian.org/releases/stable/i386/index.html.en @@ -386,13 +386,13 @@ grub_install() { # unmount $MNTPOINRT {{{ umount_chroot() { if [ -n "$ISODIR" ] ; then - if grep -q "$ISODIR" /proc/mounts ; then + if grep -q "$MNTPOINT/$ISODIR" /proc/mounts ; then einfo "Unmount $MNTPOINT/$ISODIR" umount "$MNTPOINT/$ISODIR" eend $? fi fi - if grep -q "$PARTITION" /proc/mounts ; then + if grep -q "$MNTPOINT" /proc/mounts ; then if [ -n "$PARTITION" ] ; then einfo "Unmount $MNTPOINT" umount $MNTPOINT