summaryrefslogtreecommitdiffstats
path: root/packages.py
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2007-07-09 16:07:55 +0000
committerDavid Cantrell <dcantrell@redhat.com>2007-07-09 16:07:55 +0000
commit487528e8e3b27efda5def50133267384a832e775 (patch)
tree8e667a3fb577c4549241ee85224a13b80f9caeb5 /packages.py
parent3b5b23ee818d0f84e85948aa723b24b56f122b9c (diff)
downloadanaconda-487528e8e3b27efda5def50133267384a832e775.tar.gz
anaconda-487528e8e3b27efda5def50133267384a832e775.tar.xz
anaconda-487528e8e3b27efda5def50133267384a832e775.zip
* yuminstall.py (YumBackend.doPreInstall): Make sure existing
blacklist and blacklist_exceptions blocks are commented out before adding the new definitions. Ignore empty lines when collecting WWIDs per mpath device. * packages.py (setFileCons): Reset SELinux file contexts on multipath.conf and the multipath bindings file so multipathd starts correctly on reboot.
Diffstat (limited to 'packages.py')
-rw-r--r--packages.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/packages.py b/packages.py
index 77c67f68d..566f39d93 100644
--- a/packages.py
+++ b/packages.py
@@ -191,7 +191,7 @@ def setupTimezone(anaconda):
# created by anaconda so that we can not be killed by selinux
def setFileCons(anaconda):
import partRequests
-
+
if flags.selinux:
log.info("setting SELinux contexts for anaconda created files")
@@ -205,7 +205,9 @@ def setFileCons(anaconda):
"/etc/mdadm.conf", "/etc/hosts", "/etc/sysconfig/network",
"/root/install.log", "/root/install.log.syslog",
"/etc/shadow", "/etc/shadow-", "/etc/gshadow",
- "/var/log/lastlog", "/var/log/btmp"]
+ "/var/log/lastlog", "/var/log/btmp",
+ "/var/lib/multipath", "/var/lib/multipath/bindings",
+ "/etc/multipath.conf"]
vgs = []
for entry in anaconda.id.partitions.requests:
@@ -233,7 +235,6 @@ def setFileCons(anaconda):
ret = isys.resetFileContext(os.path.normpath(f),
anaconda.rootPath)
log.info("set fc of %s to %s" %(f, ret))
-
return