summaryrefslogtreecommitdiffstats
path: root/py/mock.py
diff options
context:
space:
mode:
Diffstat (limited to 'py/mock.py')
-rwxr-xr-xpy/mock.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/py/mock.py b/py/mock.py
index 8419ff0..f9045ff 100755
--- a/py/mock.py
+++ b/py/mock.py
@@ -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: