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-15-2011, 06:32 PM
David Lehman
 
Default Reset device attr after using temp dev. (#722952)

Assigning a format to a StorageDevice changes its device attr to
point at the StorageDevice's path value. In the case of these
temporary devices this makes a mess. Clean it up.
---
pyanaconda/iw/lvm_dialog_gui.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/iw/lvm_dialog_gui.py b/pyanaconda/iw/lvm_dialog_gui.py
index 2e6072e..5b64c1a 100644
--- a/pyanaconda/iw/lvm_dialog_gui.py
+++ b/pyanaconda/iw/lvm_dialog_gui.py
@@ -792,7 +792,9 @@ class VolumeGroupEditor:
templv.targetSize = targetSize

if format.exists and format.mountable and format.mountpoint:
+ orig_dev = format.device
tempdev = StorageDevice('tmp', format=format)
+ tempdev.format.device = orig_dev
if self.storage.formatByDefault(tempdev):
reason = self.storage.mustFormat(tempdev)
if reason:
--
1.7.3.4

_______________________________________________
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 08:05 AM.

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