summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorRadek Vykydal <rvykydal@redhat.com>2009-06-30 16:50:38 +0200
committerRadek Vykydal <rvykydal@redhat.com>2009-07-02 13:39:45 +0200
commit60e509f7a6a4403dd0a5fa44675a318e0d8a4739 (patch)
treec7d19dc6ee91abb7e6831f5181cc17ca67c9c8e7 /iw
parent7e1a4f1fc533f8c9e3a70d3fa4750b2b00fa68e9 (diff)
downloadanaconda-60e509f7a6a4403dd0a5fa44675a318e0d8a4739.tar.gz
anaconda-60e509f7a6a4403dd0a5fa44675a318e0d8a4739.tar.xz
anaconda-60e509f7a6a4403dd0a5fa44675a318e0d8a4739.zip
Fix upgrade selected in UI after storage reset (#503302)
Fix of this UI flow: doing storage reset after root partitions discovery (e.g. in partitioning step) and then going back and selecting upgrade. In place of using root partition device objects obsoleted by storage reset, find root partition devices of new device tree.
Diffstat (limited to 'iw')
-rw-r--r--iw/examine_gui.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/iw/examine_gui.py b/iw/examine_gui.py
index 334f3d1e4..3a62e06c5 100644
--- a/iw/examine_gui.py
+++ b/iw/examine_gui.py
@@ -90,6 +90,12 @@ class UpgradeExamineWindow (InstallWindow):
else:
self.doupgrade = self.anaconda.id.upgrade
+ # we might get here after storage reset that obsoleted
+ # root device objects we had found
+ if not self.anaconda.id.rootParts:
+ self.anaconda.id.rootParts = upgrade.findExistingRoots(self.anaconda)
+ upgrade.setUpgradeRoot(self.anaconda)
+
self.parts = self.anaconda.id.rootParts
vbox = gtk.VBox (False, 10)