fix chroot_lock reference
authorGui Chen <gui.chen@intel.com>
Thu, 15 Aug 2013 02:06:01 +0000 (22:06 -0400)
committerGui Chen <gui.chen@intel.com>
Thu, 15 Aug 2013 02:06:01 +0000 (22:06 -0400)
Signed-off-by: Gui Chen <gui.chen@intel.com>
mic/chroot.py

index 342b5e8..4e4120d 100644 (file)
@@ -222,6 +222,8 @@ def cleanup_mounts(chrootdir):
 
 def cleanup_chrootenv(chrootdir, bindmounts=None, globalmounts=()):
     """ clean up chroot environment """
+    global chroot_lock
+
     # kill processes
     kill_proc_inchroot(chrootdir)
     # clean mtab