Assigning a format to a StorageDevice changes its device attr to
point at the StorageDevice's path value. In the case of these
temporary devices this makes a mess. Clean it up.
---
pyanaconda/iw/lvm_dialog_gui.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/pyanaconda/iw/lvm_dialog_gui.py b/pyanaconda/iw/lvm_dialog_gui.py
index 2e6072e..5b64c1a 100644
--- a/pyanaconda/iw/lvm_dialog_gui.py
+++ b/pyanaconda/iw/lvm_dialog_gui.py
@@ -792,7 +792,9 @@ class VolumeGroupEditor:
templv.targetSize = targetSize
if format.exists and format.mountable and format.mountpoint:
+ orig_dev = format.device
tempdev = StorageDevice('tmp', format=format)
+ tempdev.format.device = orig_dev
if self.storage.formatByDefault(tempdev):
reason = self.storage.mustFormat(tempdev)
if reason:
--
1.7.3.4
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list