summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2010-02-26 13:34:14 -0500
committerPeter Jones <pjones@redhat.com>2010-02-26 13:34:14 -0500
commit935aaadd5c9220bf30d60c725f9ef62540eedffc (patch)
tree34d4a54716731ccfb0a81a9a0bcaa889bcc6eebb
parent1447d9fe1b298996686539c1c3bb85e9776db6a9 (diff)
downloadanaconda-935aaadd5c9220bf30d60c725f9ef62540eedffc.tar.gz
anaconda-935aaadd5c9220bf30d60c725f9ef62540eedffc.tar.xz
anaconda-935aaadd5c9220bf30d60c725f9ef62540eedffc.zip
Revert "Write a multipath.conf before probing for mpaths."
This reverts commit 74e65cbf111a4f17fa393192519910de53d6c7ac.
-rw-r--r--storage/devicelibs/mpath.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/storage/devicelibs/mpath.py b/storage/devicelibs/mpath.py
index 75911c9a1..adb2644f3 100644
--- a/storage/devicelibs/mpath.py
+++ b/storage/devicelibs/mpath.py
@@ -1,6 +1,5 @@
from ..udev import *
import iutil
-import os
def parseMultipathOutput(output):
# this function parses output from "multipath -d", so we can use its
@@ -62,11 +61,6 @@ def identifyMultipaths(devices):
# [sda, sdd], [[sdb, sdc]], [sr0, sda1, sdd1, sdd2]]
log.info("devices to scan for multipath: %s" % [d['name'] for d in devices])
- if not os.path.exists("/etc/multipath.conf"):
- cfg = MultipathConfigWriter().write()
- open("/etc/multipath.conf", "w+").write(cfg)
- del cfg
-
topology = parseMultipathOutput(iutil.execWithCapture("multipath", ["-d",]))
# find the devices that aren't in topology, and add them into it...
topodevs = reduce(lambda x,y: x.union(y), topology.values(), set())