summaryrefslogtreecommitdiffstats
path: root/pyanaconda/storage/devicetree.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyanaconda/storage/devicetree.py')
-rw-r--r--pyanaconda/storage/devicetree.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/pyanaconda/storage/devicetree.py b/pyanaconda/storage/devicetree.py
index a5c69832e..2d30ae4d0 100644
--- a/pyanaconda/storage/devicetree.py
+++ b/pyanaconda/storage/devicetree.py
@@ -1883,13 +1883,10 @@ class DeviceTree(object):
self.liveBackingDevice = live_device_name
break
- cfg = self.__multipathConfigWriter.write(self.mpathFriendlyNames)
old_devices = {}
if os.access("/etc/multipath.conf", os.W_OK):
- with open("/etc/multipath.conf", "w+") as mpath_cfg:
- mpath_cfg.write(cfg)
-
+ self.__multipathConfigWriter.writeConfig(self.mpathFriendlyNames)
self.topology = devicelibs.mpath.MultipathTopology(udev_get_block_devices())
log.info("devices to scan: %s" %
[d['name'] for d in self.topology.devices_iter()])
@@ -1926,9 +1923,7 @@ class DeviceTree(object):
for d in self.devices:
if not d.name in whitelist:
self.__multipathConfigWriter.addBlacklistDevice(d)
- cfg = self.__multipathConfigWriter.write(self.mpathFriendlyNames)
- with open("/etc/multipath.conf", "w+") as mpath_cfg:
- mpath_cfg.write(cfg)
+ self.__multipathConfigWriter.writeConfig(self.mpathFriendlyNames)
else:
log.info("Skipping multipath detection due to running as non-root.")