[PATCH 1/6] Include incomplete devices when listing dependant devices. (#889330)

David Lehman dlehman at redhat.com
Fri Dec 21 19:57:46 UTC 2012


---
 pyanaconda/storage/devicetree.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/storage/devicetree.py b/pyanaconda/storage/devicetree.py
index 52bcacb..9d902aa 100644
--- a/pyanaconda/storage/devicetree.py
+++ b/pyanaconda/storage/devicetree.py
@@ -513,7 +513,9 @@ class DeviceTree(object):
                 if part.partType and part.isLogical and part.disk == dep.disk:
                     logicals.append(part)
 
-        for device in self.devices:
+        incomplete = [d for d in self._devices
+                            if not getattr(d, "complete", True)]
+        for device in self.devices + incomplete:
             if device.dependsOn(dep):
                 dependents.append(device)
             else:
-- 
1.7.7.6



More information about the anaconda-patches mailing list