FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 09-21-2010, 10:54 PM
"Brian C. Lane"
 
Default Properly rescan storage with Reset in partition GUI (#635778)

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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 03:26 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org