[master 4/11] Resolve md names in udev info.
dwlehman
installerbot-noreply at redhat.com
Tue Mar 17 20:07:31 UTC 2015
From: David Lehman <dlehman at redhat.com>
---
blivet/udev.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/blivet/udev.py b/blivet/udev.py
index 27035ee..db8c27f 100644
--- a/blivet/udev.py
+++ b/blivet/udev.py
@@ -143,6 +143,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:
+ name = udev_info["MD_DEVNAME"]
else:
name = udev_info.sys_name
--
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/aa6434d85727948d1a92c2554dc74866a9d01a23
More information about the anaconda-patches
mailing list