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

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



---
 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


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