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

 
 
LinkBack Thread Tools
 
Old 03-13-2009, 06:58 AM
Hans de Goede
 
Default Default to a name based on the uuid for existing luks mappings.

Looks good,

Regards,

Hans


David Lehman wrote:

This is what we default to in the device tree, so this just
lines the two up.
---
storage/formats/luks.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/storage/formats/luks.py b/storage/formats/luks.py
index 349f034..f5c2363 100644
--- a/storage/formats/luks.py
+++ b/storage/formats/luks.py
@@ -70,7 +70,9 @@ class LUKS(DeviceFormat):
self.__passphrase = kwargs.get("passphrase")
self._key_file = kwargs.get("key_file")

- if not self.mapName and self.device:

+ if not self.mapName and self.exists and self.uuid:
+ self.mapName = "luks-%s" % self.uuid
+ elif not self.mapName and self.device:
self.mapName = "luks-%s" % os.path.basename(self.device)

def _setPassphrase(self, passphrase):


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

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