[PATCH 4/6] Update md name when lookup relied on UUID.

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


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

diff --git a/blivet/devicetree.py b/blivet/devicetree.py
index ccb7f57..4a483b6 100644
--- a/blivet/devicetree.py
+++ b/blivet/devicetree.py
@@ -896,6 +896,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