summaryrefslogtreecommitdiffstats
path: root/storage/devicetree.py
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2009-08-14 16:52:47 -0500
committerDavid Lehman <dlehman@redhat.com>2009-08-17 17:02:58 -0500
commita2a7d4839610afcb6ab532da04a835156384a419 (patch)
tree5204f0f8676f2552e61ef200c282d60c57210fc6 /storage/devicetree.py
parentdc3cba5f8de8871f68143d256858af9ee3865844 (diff)
downloadanaconda-a2a7d4839610afcb6ab532da04a835156384a419.tar.gz
anaconda-a2a7d4839610afcb6ab532da04a835156384a419.tar.xz
anaconda-a2a7d4839610afcb6ab532da04a835156384a419.zip
Clean up management of extended partitions we create. (#497293)
Diffstat (limited to 'storage/devicetree.py')
-rw-r--r--storage/devicetree.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/storage/devicetree.py b/storage/devicetree.py
index 8ecf81530..83d756ba9 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -676,6 +676,14 @@ class DeviceTree(object):
log.debug("cmp: %d -- %s | %s" % (ret, a1, a2))
return ret
+ # setup actions to create any extended partitions we added
+ for device in self.devices:
+ if isinstance(device, PartitionDevice) and \
+ device.isExtended and not device.exists:
+ # don't properly register the action since the device is
+ # already in the tree
+ self._actions.append(ActionCreateDevice(device))
+
for action in self._actions:
log.debug("action: %s" % action)