[PATCH 4/6] Resolve symbolic link values of MD_CONTAINER. (#822313)

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

 



---
 pyanaconda/storage/devicetree.py |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/storage/devicetree.py b/pyanaconda/storage/devicetree.py
index a90fd18..a597726 100644
--- a/pyanaconda/storage/devicetree.py
+++ b/pyanaconda/storage/devicetree.py
@@ -860,7 +860,12 @@ class DeviceTree(object):
             log.info("%s is an fcoe disk" % name)
         elif udev_device_get_md_container(info):
             diskType = MDRaidArrayDevice
-            parentName = devicePathToName(udev_device_get_md_container(info))
+            parentPath = udev_device_get_md_container(info)
+            if os.path.islink(parentName):
+                parentPath = os.path.join(os.path.dirname(parentPath),
+                                          os.readlink(parentPath))
+
+            parentName = devicePathToName(os.path.normpath(parentPath))
             container = self.getDeviceByName(parentName)
             if not container:
                 container_sysfs = "/class/block/" + parentName
-- 
1.7.6.5

_______________________________________________
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