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

[PATCH 2/2] Cleanup existing formats' device attr after lvm dialog edit. (#723303)



The pecularities of the lvm dialog involve implicitly setting existing
formats' device attribute to refer to an lv in the dialog's temporary
vg. In the case of only setting a mountpoint for the existing format,
we need to explicitly correct this when leaving the edit dialog.
---
 pyanaconda/iw/lvm_dialog_gui.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/iw/lvm_dialog_gui.py b/pyanaconda/iw/lvm_dialog_gui.py
index 886dc13..46587a2 100644
--- a/pyanaconda/iw/lvm_dialog_gui.py
+++ b/pyanaconda/iw/lvm_dialog_gui.py
@@ -1202,6 +1202,10 @@ class VolumeGroupEditor:
                         else:
                             usedev = origlv
 
+                        # make sure the format's device attr doesn't reference
+                        # an lv in the temp vg
+                        origlv.format.device = origlv.path
+
                     if hasattr(format, "mountpoint"):
                         usedev.format.mountpoint = format.mountpoint
 
-- 
1.7.3.4


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