Make sure there are no tempvg paths even if formatting. (#737916)
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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list