summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClark Williams <williams@redhat.com>2010-08-03 12:36:21 -0500
committerClark Williams <williams@redhat.com>2010-08-03 12:43:47 -0500
commit967fdcadf16782edea28f4e6a8a735cd3acb7348 (patch)
treed2f76d2e075a9fca7c47d00935ed10acc95b52cb
parent068cc32d78c26372bed383f1fbb7c4851e10166d (diff)
downloadmock-967fdcadf16782edea28f4e6a8a735cd3acb7348.tar.gz
mock-967fdcadf16782edea28f4e6a8a735cd3acb7348.tar.xz
mock-967fdcadf16782edea28f4e6a8a735cd3acb7348.zip
append rather than insert umount of /proc/filesystems (BZ# 620825)
since the umount commands are reversed before being executed, just append the umount of /proc/filesystems in the selinux plugin so that it will happen in the correct order. Signed-off-by: Clark Williams <williams@redhat.com>
-rw-r--r--py/mock/plugins/selinux.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/mock/plugins/selinux.py b/py/mock/plugins/selinux.py
index 6d15a94..fd4bf2e 100644
--- a/py/mock/plugins/selinux.py
+++ b/py/mock/plugins/selinux.py
@@ -60,7 +60,7 @@ class SELinux(object):
host.close()
self.rootObj.mountCmds.append("mount -n --bind %s %s" % (self.filesystems, self.chrootFilesystems))
- self.rootObj.umountCmds.insert(0, "umount -n %s" % self.chrootFilesystems)
+ self.rootObj.umountCmds.append("umount -n %s" % self.chrootFilesystems)
decorate(traceLog())
def _selinuxPostBuildHook(self):