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

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

 



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

_______________________________________________
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