[PATCH 3/4] Fix disklabel handling for multiple calls to processActions.
David Lehman
dlehman at redhat.com
Thu Jul 18 14:13:46 UTC 2013
---
blivet/devicetree.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/blivet/devicetree.py b/blivet/devicetree.py
index 0a8503f..e67340a 100644
--- a/blivet/devicetree.py
+++ b/blivet/devicetree.py
@@ -250,6 +250,11 @@ class DeviceTree(object):
self._completed_actions.append(self._actions.pop(0))
+ # removal of partitions makes use of originalFormat, so it has to stay
+ # up to date in case of multiple passes through this method
+ for disk in [d for d in self.devices if d.partitioned]:
+ disk.originalFormat = copy.deepcopy(disk.format)
+
def _addDevice(self, newdev):
""" Add a device to the tree.
--
1.8.1.4
More information about the anaconda-patches
mailing list