[PATCH rhel6-branch 1/2] Rescan disks when moving back through upgrade check (#614812)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We rescan when moving forward from autopart, but not back, so when
there is something to upgrade we need to also rescan when moving back
to the upgrade screen.

Resolves: rhbz#614812
---
 iw/autopart_type.py |    8 ++++++++
 iw/examine_gui.py   |   10 ++++++++++
 2 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/iw/autopart_type.py b/iw/autopart_type.py
index fbc4391..9c0ae97 100644
--- a/iw/autopart_type.py
+++ b/iw/autopart_type.py
@@ -147,6 +147,14 @@ class PartitionTypeWindow(InstallWindow):
         if self.storage.checkNoDisks():
             raise gui.StayOnScreen
 
+        # reset storage, this is only done when moving forward, not back
+        # temporarily unset storage.clearPartType so that all devices will be
+        # found during storage reset
+        clearPartType = self.anaconda.id.storage.clearPartType
+        self.anaconda.id.storage.clearPartType = None
+        self.anaconda.id.storage.reset()
+        self.anaconda.id.storage.clearPartType = clearPartType
+
         self.storage.clearPartChoice = self.buttonGroup.getCurrent()
 
         if self.buttonGroup.getCurrent() == "custom":
diff --git a/iw/examine_gui.py b/iw/examine_gui.py
index 688d3ca..d1099cf 100644
--- a/iw/examine_gui.py
+++ b/iw/examine_gui.py
@@ -90,6 +90,16 @@ class UpgradeExamineWindow (InstallWindow):
 	else:
 	    self.doupgrade = self.anaconda.id.upgrade
 
+        if anaconda.dir == DISPATCH_BACK:
+            # reset storage to catch any changes since we only reset when
+            # moving forward from autopart, not back.
+            # temporarily unset storage.clearPartType so that all devices will be
+            # found during storage reset
+            clearPartType = self.anaconda.id.storage.clearPartType
+            self.anaconda.id.storage.clearPartType = None
+            self.anaconda.id.storage.reset()
+            self.anaconda.id.storage.clearPartType = clearPartType
+
         # we might get here after storage reset that obsoleted
         # root device objects we had found
         if not self.anaconda.id.rootParts:
-- 
1.7.3.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux