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 Make sure there are no tempvg paths even if formatting. (#737916)

If the user tried to reuse a rootfs they got the device attr set
to point to the tempvg but because of us forcing them to they are
reformatting it. In this scenario we have to force the device
attr back to point to the real device node.
---
pyanaconda/iw/lvm_dialog_gui.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/pyanaconda/iw/lvm_dialog_gui.py b/pyanaconda/iw/lvm_dialog_gui.py
index 349fafe..2e6072e 100644
--- a/pyanaconda/iw/lvm_dialog_gui.py
+++ b/pyanaconda/iw/lvm_dialog_gui.py
@@ -1163,6 +1163,10 @@ class VolumeGroupEditor:

if lv.format.exists:
log.debug("format already exists")
+ # make sure the format's device attr doesn't reference
+ # an lv in the temp vg
+ origlv.format.device = origlv.path
+
if lv.format.type == "luks":
# see if the luks device already exists
try:
@@ -1212,10 +1216,6 @@ class VolumeGroupEditor:
else:
usedev = origlv

- # make sure the format's device attr doesn't reference
- # an lv in the temp vg
- origlv.format.device = origlv.path
-
if hasattr(format, "mountpoint"):
usedev.format.mountpoint = format.mountpoint

--
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 12:36 PM.

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