From 967fdcadf16782edea28f4e6a8a735cd3acb7348 Mon Sep 17 00:00:00 2001 From: Clark Williams Date: Tue, 3 Aug 2010 12:36:21 -0500 Subject: 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 --- py/mock/plugins/selinux.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/mock/plugins/selinux.py') 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): -- cgit