[PATCH 2/3] Reset device attr after using temp dev. (#722952)

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

 



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@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