[master 4/7] Don't use MD_DEVNAME as device name for md partitions.
dwlehman
installerbot-noreply at redhat.com
Wed Aug 5 17:49:52 UTC 2015
From: David Lehman <dlehman at redhat.com>
Related: rhbz#1245191
---
blivet/udev.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/blivet/udev.py b/blivet/udev.py
index 1c36cbc..3940f1a 100644
--- a/blivet/udev.py
+++ b/blivet/udev.py
@@ -144,7 +144,8 @@ def device_get_name(udev_info):
""" Return the best name for a device based on the udev db data. """
if "DM_NAME" in udev_info:
name = udev_info["DM_NAME"]
- elif "MD_DEVNAME" in udev_info:
+ elif "MD_DEVNAME" in udev_info and not device_is_partition(udev_info):
+ # md partitions have MD_DEVNAME set to the partition's parent/disk
name = udev_info["MD_DEVNAME"]
else:
name = udev_info.sys_name
--
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/f536bdaadcf142598a34ac7b429fbff71ae78153
More information about the anaconda-patches
mailing list