summaryrefslogtreecommitdiffstats
path: root/py
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 16:08:29 -0500
commit99b173a54cfe1c79d3be5928d0d111a557e340b7 (patch)
tree816389e81fda0f3913843c4bde9493e7827382b9 /py
parent3690c3fd455efc3d1e3bc512f151b128000d1951 (diff)
downloadmock-99b173a54cfe1c79d3be5928d0d111a557e340b7.tar.gz
mock-99b173a54cfe1c79d3be5928d0d111a557e340b7.tar.xz
mock-99b173a54cfe1c79d3be5928d0d111a557e340b7.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>
Diffstat (limited to 'py')
-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):