[Grml-devel] [PATCH] [issue806] final fix

Tong Sun suntong at cpan.org
Tue Jun 8 23:50:52 CEST 2010


remove 'umount -a',see
http://bts.grml.org/grml/issue806
---
 grml-debootstrap |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/grml-debootstrap b/grml-debootstrap
index dc4006d..f9b5ebb 100755
--- a/grml-debootstrap
+++ b/grml-debootstrap
@@ -644,7 +644,7 @@ bailout(){
         [ -x "$MNTPOINT"/etc/init.d/ssh   ] && "$MNTPOINT"/etc/init.d/ssh stop
         [ -x "$MNTPOINT"/etc/init.d/mdadm ] && "$MNTPOINT"/etc/init.d/mdadm stop
         # ugly, but make sure we really don't leave anything (/proc /proc is intended)
-        for ARG in /sys -a /proc /proc ; do
+        for ARG in /sys /proc /proc ; do
           [ -x "$MNTPOINT"/bin/umount ] && chroot "$MNTPOINT" umount $ARG >/dev/null 2>&1 || true
         done
         umount "$MNTPOINT"/dev >/dev/null 2>&1 || true
-- 
1.7.1



More information about the Grml-devel mailing list