[PATCH rhel6-branch 3/3] Properly rescan storage with Reset in partition GUI (#595659)

[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#595659
---
 iw/partition_gui.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/iw/partition_gui.py b/iw/partition_gui.py
index 4ede78d..18da08d 100644
--- a/iw/partition_gui.py
+++ b/iw/partition_gui.py
@@ -1546,7 +1546,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.0.1

_______________________________________________
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