summaryrefslogtreecommitdiffstats
path: root/whiteout.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-02-23 23:35:34 +0000
committerJeremy Katz <katzj@redhat.com>2004-02-23 23:35:34 +0000
commit47a46934b0b0deef6bec281fc5bdf4d737294c96 (patch)
tree91f616441d15dfd9555d6d6acd6061e5137a75cf /whiteout.py
parent4c004cc1216355307d79bfff437249fa5e20caa0 (diff)
downloadanaconda-47a46934b0b0deef6bec281fc5bdf4d737294c96.tar.gz
anaconda-47a46934b0b0deef6bec281fc5bdf4d737294c96.tar.xz
anaconda-47a46934b0b0deef6bec281fc5bdf4d737294c96.zip
key off of the flag
Diffstat (limited to 'whiteout.py')
-rw-r--r--whiteout.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/whiteout.py b/whiteout.py
index 12bb65f4f..dbc7478e3 100644
--- a/whiteout.py
+++ b/whiteout.py
@@ -7,16 +7,14 @@
import os
import rpm
import rhpl.arch
+from flags import flags
# set DB_PRIVATE to make rpm happy... do it in here since we include
# this with all of the useful rpm bits
rpm.addMacro("__dbi_cdb", "create private mpool mp_mmapsize=16Mb mp_size=1Mb")
# assuming that SELinux is set up, tell rpm where to pull file contexts from
-f = open("/proc/cmdline", "r")
-line = f.readline()
-f.close()
-if os.path.exists("/selinux/load") and line.find(" selinux=0") == -1:
+if flags.selinux:
for fn in ("/tmp/updates/file_contexts",
"/mnt/source/RHupdates/file_contexts",
"/etc/security/selinux/src/policy/file_contexts/file_contexts",