From 8b4c6084ec6a94459f923a6a830b35a1c2144de2 Mon Sep 17 00:00:00 2001 From: Gui Chen Date: Thu, 15 Aug 2013 23:22:02 -0400 Subject: [PATCH] don't need to clean up extra mounts present cleanup_mount would clean up the chrootdir, which will block the locking mechanism Signed-off-by: Gui Chen --- mic/chroot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mic/chroot.py b/mic/chroot.py index ac2c007..8a74137 100644 --- a/mic/chroot.py +++ b/mic/chroot.py @@ -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() -- 2.7.4