summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjcwillia <jcwillia>2006-04-12 14:22:11 +0000
committerjcwillia <jcwillia>2006-04-12 14:22:11 +0000
commit5fc713dad6a1a87edbcbd22fa9ec3292e2a61ee8 (patch)
tree3a3f26d8addee362e208649cef0d2f5cca4dd08b
parent1296d57e07ea87795349c3d1b3c5493942e05c33 (diff)
downloadmock-5fc713dad6a1a87edbcbd22fa9ec3292e2a61ee8.tar.gz
mock-5fc713dad6a1a87edbcbd22fa9ec3292e2a61ee8.tar.xz
mock-5fc713dad6a1a87edbcbd22fa9ec3292e2a61ee8.zip
change to chroot command to insure /proc and /sys are mounted/unmounted
-rw-r--r--mock.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mock.py b/mock.py
index e452a40..1b0e343 100644
--- a/mock.py
+++ b/mock.py
@@ -792,7 +792,9 @@ def main():
elif args[0] == 'chroot':
config_opts['clean'] = config_opts['quiet'] = False
my= Root(config_opts)
+ my._mount()
my.do_chroot(' '.join(args[1:]), True)
+ my.close()
print 'Finished chroot command'
else: