[PATCH 5/6] Don't pass md array UUID as member format UUID.

David Lehman dlehman at redhat.com
Mon Aug 4 15:15:01 UTC 2014


Related: rhbz#1070095
---
 blivet/devicetree.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/blivet/devicetree.py b/blivet/devicetree.py
index 4a483b6..8adda3f 100644
--- a/blivet/devicetree.py
+++ b/blivet/devicetree.py
@@ -1788,9 +1788,9 @@ class DeviceTree(object):
             except KeyError:
                 log.warning("mdraid member %s has no md uuid", name)
 
-            # attempt to reset the uuid using mdexamine info
-            # will succeed only if metadata version > 0.90
-            kwargs["uuid"] = udev.device_get_md_device_uuid(info) or kwargs["uuid"]
+            # reset the uuid to the member-specific value
+            # this will be None for members of v0 metadata arrays
+            kwargs["uuid"] = udev.device_get_md_device_uuid(info)
 
             kwargs["biosraid"] = udev.device_is_biosraid_member(info)
         elif format_type == "LVM2_member":
-- 
1.9.3



More information about the anaconda-patches mailing list