[PATCH] Fix install issue when many LUNs and LUN paths present.

Robert Marshall rmarshall at redhat.com
Tue Jan 20 19:12:09 UTC 2015


If installing a system with over 250 LUN paths the blivet subsystem
would crash with an error. Partnered with David Lehman and he was
able to provide a solution.

Resolves rhbz#1181336
---
 blivet/udev.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/blivet/udev.py b/blivet/udev.py
index 65652bd..c23ce7e 100644
--- a/blivet/udev.py
+++ b/blivet/udev.py
@@ -577,7 +577,7 @@ def device_is_biosraid_member(info):
     return False
 
 def device_get_dm_partition_disk(info):
-    return re.sub(r'p?\d*$', '', device_get_name(info))
+    return os.path.basename(os.path.dirname(device_get_sysfs_path(info)))
 
 def device_is_dm_partition(info):
     return (device_is_dm(info) and
-- 
2.1.0



More information about the anaconda-patches mailing list