[PATCH 2/5] Set up devices using their original formats for certain action types.

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

 



Any action that acts on a pre-existing device should set up that
device using the original formats because value of the devices'
format attribute may have changed to represent a format that does
not yet exist.
---
 storage/deviceaction.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/storage/deviceaction.py b/storage/deviceaction.py
index dbfaf60..859c0f1 100644
--- a/storage/deviceaction.py
+++ b/storage/deviceaction.py
@@ -309,7 +309,7 @@ class ActionDestroyFormat(DeviceAction):
     def execute(self, intf=None):
         """ wipe the filesystem signature from the device """
         if self.origFormat:
-            self.device.setup()
+            self.device.setup(orig=True)
             self.origFormat.destroy()
             udev_settle()
             self.device.teardown()
@@ -344,7 +344,7 @@ class ActionResizeFormat(DeviceAction):
         self.device.format.targetSize = newsize
 
     def execute(self, intf=None):
-        self.device.setup()
+        self.device.setup(orig=True)
         self.device.format.doResize(intf=intf)
 
     def cancel(self):
@@ -363,7 +363,7 @@ class ActionMigrateFormat(DeviceAction):
         self.device.format.migrate = True
 
     def execute(self, intf=None):
-        self.device.setup()
+        self.device.setup(orig=True)
         self.device.format.doMigrate(intf=intf)
 
     def cancel(self):
-- 
1.6.6

_______________________________________________
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