Warning!

Notice: the grml team is migrating from Mercurial to Git.
Please visit git.grml.org instead!

Fix /proc/mounts-check
authorMichael Prokop <mika@grml.org>
Tue Jun 05 14:06:31 2007 +0200 (18 months ago)
changeset 1809cfe13dc689b
manifest9cfe13dc689b
parent 1793e68c9233ed3
child 181adc723a51d63
Fix /proc/mounts-check
grml-debootstrap
--- a/grml-debootstrap Tue Jun 05 14:05:02 2007 +0200
+++ b/grml-debootstrap Tue Jun 05 14:06:31 2007 +0200
@@ -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.
-# 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