[PATCH f14-branch master 3/3] Properly rescan storage with Reset in partition GUI (#635778)

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

 



Temporarily reset the partition type when rescanning so that
the original settings will be discovered when hitting 'reset'
in the partition dialog.

Related: rhbz#635778
---
 pyanaconda/iw/partition_gui.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/iw/partition_gui.py b/pyanaconda/iw/partition_gui.py
index 015aa76..129d655 100644
--- a/pyanaconda/iw/partition_gui.py
+++ b/pyanaconda/iw/partition_gui.py
@@ -1561,7 +1561,12 @@ class PartitionWindow(InstallWindow):
             return
 
         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()
         self.populate()
 
-- 
1.7.2.3

_______________________________________________
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