[blivet:master 11/11] Attempt to reset the uuid of the mdraid member device (#1070095)
mulhern
amulhern at redhat.com
Thu Jul 3 15:19:50 UTC 2014
Resolves: rhbz#1070095
Note that this information is only available for metadata versions > 0.90.
Signed-off-by: mulhern <amulhern at redhat.com>
---
blivet/devicetree.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/blivet/devicetree.py b/blivet/devicetree.py
index 64aa5ac..ac355b5 100644
--- a/blivet/devicetree.py
+++ b/blivet/devicetree.py
@@ -1825,6 +1825,11 @@ class DeviceTree(object):
kwargs["mdUuid"] = udev.udev_device_get_md_uuid(info)
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.udev_device_get_md_device_uuid(info) or kwargs["uuid"]
+
kwargs["biosraid"] = udev.udev_device_is_biosraid_member(info)
elif format_type == "LVM2_member":
# lvm
--
1.9.3
More information about the anaconda-patches
mailing list