[PATCH] Update disk refs when recovering from a devicefactory failure. (#1032141)

David Lehman dlehman at redhat.com
Mon Feb 24 21:42:22 UTC 2014


---
 pyanaconda/ui/gui/spokes/custom.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 2f2422a..6ca4a20 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -1448,6 +1448,12 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
                     if _device is None:
                         # in this case we have removed the old device so we now have
                         # to re-create it
+
+                        # the disks need to be updated since we've replaced all
+                        # of the devices with copies in the devicefactory error
+                        # handler
+                        old_disk_names = [d.name for d in old_disks]
+                        old_disks = [self.__storage.devicetree.getDeviceByName(n) for n in old_disk_names]
                         try:
                             self._replace_device(old_device_type, device.size,
                                                  disks=old_disks,
-- 
1.8.5.3



More information about the anaconda-patches mailing list