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

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



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ack.

On Thu, 13 May 2010, David Lehman wrote:

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


- -- David Cantrell <dcantrell redhat com>
Red Hat / Honolulu, HI

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)

iEYEARECAAYFAkv0qAUACgkQ5hsjjIy1Vkl/wgCg7UYK5q/8hfnZsX3LVJl3vV5d
kgUAniOHpWECdUekupuG+R9jM8V2wrmV
=cfF1
-----END PGP SIGNATURE-----


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