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

[PATCH 3/3] Use the luks format's mapName when creating temp LUKSDevice. (#722952)



The mapName will be appropriately set based on whether the
formatting exists, so just use it instead of hoping to get
lucky by specifying the 'luks-$dev_path' form.

Gotta love these lvm dialogs.
---
 pyanaconda/iw/lvm_dialog_gui.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/iw/lvm_dialog_gui.py b/pyanaconda/iw/lvm_dialog_gui.py
index 5b64c1a..38cdbed 100644
--- a/pyanaconda/iw/lvm_dialog_gui.py
+++ b/pyanaconda/iw/lvm_dialog_gui.py
@@ -420,7 +420,7 @@ class VolumeGroupEditor:
         templv = self.getLVByName(lv['name'], vg=tempvg)
         usedev = templv
         if templv.format.type == "luks":
-            templuks = LUKSDevice("luks-%s" % lv['name'],
+            templuks = LUKSDevice(templv.format.mapName,
                                   parents=[templv],
                                   format=self.luks[lv['name']],
                                   exists=templv.format.exists)
-- 
1.7.3.4


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