[PATCH 2/3] Update md name when lookup relied on UUID.

David Lehman dlehman at redhat.com
Thu Jul 31 22:16:03 UTC 2014


---
 blivet/devicetree.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/blivet/devicetree.py b/blivet/devicetree.py
index f8fc112..73558df 100644
--- a/blivet/devicetree.py
+++ b/blivet/devicetree.py
@@ -910,6 +910,9 @@ class DeviceTree(object):
                 log.warning("failed to obtain uuid for mdraid device")
             else:
                 device = self.getDeviceByUuid(uuid, incomplete=flags.allow_degraded_mdraid)
+                if device:
+                    # update the device instance with the real name
+                    device.name = name
 
         # if we get here, we found all of the slave devices and
         # something must be wrong -- if all of the slaves are in
-- 
1.9.3



More information about the anaconda-patches mailing list