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

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

 



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

_______________________________________________
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