From cadbb7e8aa7c4e76c958978ef8cd60a29b837cb4 Mon Sep 17 00:00:00 2001 From: David Lehman Date: Fri, 12 Jul 2013 17:30:35 -0500 Subject: [PATCH 07/13] Fix disklabel handling for multiple calls to processActions. --- 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