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