diff options
author | Michael E Brown <michael_e_brown@dell.com> | 2008-01-18 15:53:33 -0600 |
---|---|---|
committer | Michael E Brown <michael_e_brown@dell.com> | 2008-01-18 15:53:33 -0600 |
commit | 3cfdea5d12f0b4923cdfa9572e58ba098b4833c6 (patch) | |
tree | d1da8e9ecd74781878c9f14dcf30512054635caf /py/mock.py | |
parent | 1688f6817747729352dad266abc93b98b678b257 (diff) | |
download | mock-3cfdea5d12f0b4923cdfa9572e58ba098b4833c6.tar.gz mock-3cfdea5d12f0b4923cdfa9572e58ba098b4833c6.tar.xz mock-3cfdea5d12f0b4923cdfa9572e58ba098b4833c6.zip |
mount everything when running chroot command.
Diffstat (limited to 'py/mock.py')
-rwxr-xr-x | py/mock.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -529,7 +529,11 @@ def main(ret): log.info("Running in chroot: %s" % args) chroot.tryLockBuildRoot() chroot._resetLogging() - chroot.doChroot(args) + try: + chroot._mountall() + chroot.doChroot(args) + finally: + chroot._umountall() elif options.mode == 'installdeps': if len(args) == 0: |