don't need to clean up extra mounts present
authorGui Chen <gui.chen@intel.com>
Fri, 16 Aug 2013 03:22:02 +0000 (23:22 -0400)
committerGui Chen <gui.chen@intel.com>
Fri, 16 Aug 2013 03:22:02 +0000 (23:22 -0400)
cleanup_mount would clean up the chrootdir, which
will block the locking mechanism

Signed-off-by: Gui Chen <gui.chen@intel.com>
mic/chroot.py

index ac2c007..8a74137 100644 (file)
@@ -236,8 +236,9 @@ def cleanup_chrootenv(chrootdir, bindmounts=None, globalmounts=()):
     cleanup_resolv(chrootdir)
     # bind umounting
     bind_unmount(get_bindmounts(chrootdir, bindmounts))
-    # clean up mounts
-    cleanup_mounts(chrootdir)
+    # FIXME: need to clean up mounts?
+    #cleanup_mounts(chrootdir)
+
     # release the lock
     if chroot_lock:
         chroot_lock.release()