[PATCH rhel6-branch 2/3] Make sure we write out multipath.conf before discovery (#563242)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We need to make sure the config file is there every time, or else
/sbin/multipath helpfully does nothing useful at all.
---
 iw/filter_gui.py |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/iw/filter_gui.py b/iw/filter_gui.py
index 6291018..a85cd1f 100644
--- a/iw/filter_gui.py
+++ b/iw/filter_gui.py
@@ -423,6 +423,13 @@ class FilterWindow(InstallWindow):
 
         udev_trigger(subsystem="block")
         new_disks = filter(udev_device_is_disk, udev_get_block_devices())
+
+        mcw = MultipathConfigWriter()
+        cfg = mcw.write()
+        open("/etc/multipath.conf", "w+").write(cfg)
+        del cfg
+        del mcw
+
         (new_singlepaths, new_mpaths, new_partitions) = identifyMultipaths(new_disks)
         (new_raids, new_nonraids) = self.split_list(lambda d: isRAID(d) and not isCCISS(d),
                                                     new_singlepaths)
@@ -554,6 +561,12 @@ class FilterWindow(InstallWindow):
                                     anaconda.id.storage.exclusiveDisks,
                                     anaconda.id.storage.zeroMbr)
         disks = filter(udev_device_is_disk, udev_get_block_devices())
+
+        mcw = MultipathConfigWriter()
+        cfg = mcw.write()
+        open("/etc/multipath.conf", "w+").write(cfg)
+        del cfg
+        del mcw
         (singlepaths, mpaths, partitions) = identifyMultipaths(disks)
 
         # The device list could be really long, so we really only want to
-- 
1.7.0.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux