[issue865] grml-debootstrap, split out chroot part

Tong Sun bts at bts.grml.org
Sun Jun 6 05:07:53 CEST 2010


New submission from Tong Sun <suntong001 at gmail.com>:

Hi, 

I believe that the chroot part in grml-debootstrap and grml-chroot share a good
portion of common ground in preparing chroot, and restoring it. So would it a
good idea to split out chroot part of grml-debootstrap into grml-chroot, so that
we have a single code base to maintain/enhance? 

If OK, I'd like to take the first stab,

. do the porting/testing
. add parameter handling to grml-chroot so that 

  grml-chroot --grml-debootstrap os_root

will do the jobs originally in grml-debootstrap.

OK? If so, I'd also like to add another parameter --force-unload to do the
following conditionally:

diff --git a/usr_sbin/grml-chroot b/usr_sbin/grml-chroot
index eb9cefc..bce9c50 100755
--- a/usr_sbin/grml-chroot
+++ b/usr_sbin/grml-chroot
@@ -56,7 +56,7 @@ function mountit
 function umount_all
 {
    for i in $MOUNTED_; do
-        umount "${DEST_}/$i"
+        umount "${DEST_}/$i" || umount -l "${DEST_}/$i"
    done
 }

----------
messages: 3207
nosy: gebi, mika, suntong
priority: feature
status: unread
title: grml-debootstrap, split out chroot part

_____________________________________
GRML issue tracker <bts at bts.grml.org>
<http://bts.grml.org/grml/issue865>
_____________________________________


More information about the Bugs-changes mailing list