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 > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 03-10-2010, 07:35 AM
Hans de Goede
 
Default Preserve encryption setting when re-editing new encrypted LVs. (#568547)

Ack.

On 03/10/2010 01:18 AM, David Lehman wrote:

The part of the if clause that I'm removing will never be true anyhow
-- it requires a preexisting format, but it is inside a clause that
only gets entered for non-existing LVs, which obviously cannot contain
pre-existing formats.
---
iw/lvm_dialog_gui.py | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/iw/lvm_dialog_gui.py b/iw/lvm_dialog_gui.py
index bae72f5..9cc87b5 100644
--- a/iw/lvm_dialog_gui.py
+++ b/iw/lvm_dialog_gui.py
@@ -722,12 +722,15 @@ class VolumeGroupEditor:
continue

format = fmt_class(mountpoint=mountpoint)
- if self.lukscb and self.lukscb.get_active() and
- (templv.format.type != "luks" or
- (templv.format.exists and not templv.format.hasKey)):
- newluks = format
- format = getFormat("luks",
+ if self.lukscb and self.lukscb.get_active():
+ if templv.format.type != "luks":
+ newluks = format
+ format = getFormat("luks",
passphrase=self.storage.encryptionPassphrase)
+ else:
+ newluks = format
+ format = templv.format
+
templv.format = format
else:
# existing lv


_______________________________________________
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 07:46 PM.

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