[PATCH 1/3] Make sure there are no tempvg paths even if formatting. (#737916)

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

 



If the user tried to reuse a rootfs they got the device attr set
to point to the tempvg but because of us forcing them to they are
reformatting it. In this scenario we have to force the device
attr back to point to the real device node.
---
 pyanaconda/iw/lvm_dialog_gui.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/pyanaconda/iw/lvm_dialog_gui.py b/pyanaconda/iw/lvm_dialog_gui.py
index 349fafe..2e6072e 100644
--- a/pyanaconda/iw/lvm_dialog_gui.py
+++ b/pyanaconda/iw/lvm_dialog_gui.py
@@ -1163,6 +1163,10 @@ class VolumeGroupEditor:
 
                 if lv.format.exists:
                     log.debug("format already exists")
+                    # make sure the format's device attr doesn't reference
+                    # an lv in the temp vg
+                    origlv.format.device = origlv.path
+
                     if lv.format.type == "luks":
                         # see if the luks device already exists
                         try:
@@ -1212,10 +1216,6 @@ 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