[PATCH 3/6] Pick up mountpoint for existing formats on encrypted LVs. (#587002)

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

 



---
 iw/lvm_dialog_gui.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/iw/lvm_dialog_gui.py b/iw/lvm_dialog_gui.py
index 2474627..cebb8e9 100644
--- a/iw/lvm_dialog_gui.py
+++ b/iw/lvm_dialog_gui.py
@@ -754,6 +754,12 @@ class VolumeGroupEditor:
                      not self.fsoptionsDict["formatcb"].get_active():
                     templv.format = templv.originalFormat
                     format = templv.format
+                    if templv.format.type == "luks":
+                        origlv = self.getLVByName(templv.lvname)
+                        try:
+                            format = self.storage.devicetree.getChildren(origlv)[0].format
+                        except IndexError:
+                            pass
 
                 if format.mountable:
                     format.mountpoint = mountpoint
-- 
1.6.6.1

_______________________________________________
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