View Single Post
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#3106
Originally Posted by sulu View Post
Basically yes, although my version is even simpler (and therefore probably less elegant):
Code:
pp900-a:/sbin# diff closechroot closechroot.old
--- closechroot
+++ closechroot.old
@@ -29,7 +29,7 @@
 fi
 
 #Abort if chroot not mounted.
-if [ "$IMGFILE" != "none" ] && [ ! -f "$CHROOT/var/lock/qmount-complete" ] ; then
+if [ ! -f "$CHROOT/var/lock/qmount-complete" ] ; then
   echo "Nothing to do; chroot not mounted!"
-   exit 1
+   #exit 1
 fi
I don't remember the details but when I had some problems with lingering mounts I decided to use steamroller tactics.
All you have to do is make sure everything that was mounted gets unmounted afterwards.
Thanks. So it might be good idea to include it into the easy-deb-chroot package Do you want to do it yourself as at the moment you're the actual Easy Debian maintainer?
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here