[master 5/5] Prepend /sys to sysfs path for udev lookup (#1208536)

mulkieran installerbot-noreply at redhat.com
Tue Apr 7 12:57:45 UTC 2015


From: mulhern <amulhern at redhat.com>

Resolves: fed#1208536

Signed-off-by: mulhern <amulhern at redhat.com>
---
 blivet/populator.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/blivet/populator.py b/blivet/populator.py
index 60a5073..3db5d78 100644
--- a/blivet/populator.py
+++ b/blivet/populator.py
@@ -503,7 +503,7 @@ def addUdevDiskDevice(self, info):
             container = self.getDeviceByName(parentName)
             if not container:
                 parentSysName = blockdev.md_node_from_name(parentName)
-                container_sysfs = "/class/block/" + parentSysName
+                container_sysfs = "/sys/class/block/" + parentSysName
                 container_info = udev.get_device(container_sysfs)
                 if not container_info:
                     log.error("failed to find md container %s at %s",


-- 
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/499065bd637a64bba621a730e06f861b53f7df61


More information about the anaconda-patches mailing list