[PATCH 2/2] Match md names from udev_resolve_devspec. (#1047338)
David Lehman
dlehman at redhat.com
Mon Mar 3 17:43:38 UTC 2014
This allows the use of md device names in bootloader, clearpart,
and ignoredisk kickstart commands, which matters for certain kinds
of FW RAID.
---
blivet/udev.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/blivet/udev.py b/blivet/udev.py
index 24fa2fa..42c0ab4 100644
--- a/blivet/udev.py
+++ b/blivet/udev.py
@@ -111,7 +111,8 @@ def udev_resolve_devspec(devspec):
if udev_device_get_uuid(dev) == devspec[5:]:
ret = dev
break
- elif udev_device_get_name(dev) == _devices.devicePathToName(devspec):
+ elif _devices.devicePathToName(devspec) in (udev_device_get_name(dev),
+ udev_device_get_md_name(dev)):
ret = dev
break
else:
--
1.8.5.3
More information about the anaconda-patches
mailing list