Re: [PATCH] Default to a name based on the uuid for existing luks mappings.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux