msger.info("Launching shell. Exit to continue.\n"
"----------------------------------")
- globalmounts = setup_chrootenv(chrootdir, bindmounts)
+ #globalmounts is no useless, remove it, currently function always return none.
+ setup_chrootenv(chrootdir, bindmounts)
subprocess.call(execute, preexec_fn = mychroot, shell=True)
- except OSError, err:
+ except OSError as err:
raise errors.CreatorError("chroot err: %s" % str(err))
finally: