[PATCH 1/6] Look in udev data for md member UUID.
David Lehman
dlehman at redhat.com
Mon Aug 4 15:14:57 UTC 2014
Use data from mdadm -E if needed as a fallback.
---
blivet/udev.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/blivet/udev.py b/blivet/udev.py
index bc206d6..1592f00 100644
--- a/blivet/udev.py
+++ b/blivet/udev.py
@@ -392,7 +392,9 @@ def device_get_md_device_uuid(info):
# Value for MD_UUID known to be obtained from:
# * pyudev/libudev
# * mdraid/mdadm (only 1.x metadata versions)
- return info.get('MD_DEV_UUID')
+ # Value for ID_FS_UUID_SUB known to be obtained from:
+ # * pyudev/libudev
+ return info.get('ID_FS_UUID_SUB') or info.get('MD_DEV_UUID')
def device_get_vg_name(info):
return info['LVM2_VG_NAME']
--
1.9.3
More information about the anaconda-patches
mailing list