cleanup_mount would clean up the chrootdir, which
will block the locking mechanism
Signed-off-by: Gui Chen <gui.chen@intel.com>
cleanup_resolv(chrootdir)
# bind umounting
bind_unmount(get_bindmounts(chrootdir, bindmounts))
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()
# release the lock
if chroot_lock:
chroot_lock.release()