[PATCH][rhel6, f13, master] Restore storage.clearPartType after reset when backing out of GUI. (#559233)

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

 



We unset storage.clearPartType so that all devices will be found during
reset of storage, but we need to restore it afterwards since the user
is headed to the cleardisks screen and not necessarily all the way back
to the parttype screen where clearPartType would get set again.

I'd like to put this on all active branches, but if people have concerns
about putting it on f13-branch, feel free to speak up.
---
 iw/partition_gui.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/iw/partition_gui.py b/iw/partition_gui.py
index e50406d..b78fd9d 100644
--- a/iw/partition_gui.py
+++ b/iw/partition_gui.py
@@ -902,8 +902,12 @@ class PartitionWindow(InstallWindow):
 
     def getPrev(self):
         self.stripeGraph.shutDown()
+        # temporarily unset storage.clearPartType so that all devices will be
+        # found during storage reset
+        clearPartType = self.storage.clearPartType
         self.storage.clearPartType = None
         self.storage.reset()
+        self.storage.clearPartType = clearPartType
         self.tree.clear()
         del self.parent
         return None
-- 
1.6.6

_______________________________________________
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