diff options
author | Chris Lumens <clumens@redhat.com> | 2009-05-13 17:46:33 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2009-05-14 12:46:50 -0400 |
commit | ae229e1e1ee35f617fffdbb8d1e397e3caea44d4 (patch) | |
tree | 5092f31e639388888205851b8694db15e726404a /storage | |
parent | be6e7d918828735ede218dbb490b0ecf250a5469 (diff) | |
download | anaconda-ae229e1e1ee35f617fffdbb8d1e397e3caea44d4.tar.gz anaconda-ae229e1e1ee35f617fffdbb8d1e397e3caea44d4.tar.xz anaconda-ae229e1e1ee35f617fffdbb8d1e397e3caea44d4.zip |
Add the partition table partition after initializing (#498602).
We need to make sure the mac partition table partition is in the device tree
before going any farther in anaconda, or we'll get a traceback when reviewing
the layout in the UI.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/devicetree.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/storage/devicetree.py b/storage/devicetree.py index 3837b4541..5b6d200a8 100644 --- a/storage/devicetree.py +++ b/storage/devicetree.py @@ -1102,6 +1102,15 @@ class DeviceTree(object): return self._addDevice(device) + + # If this is a mac-formatted disk we just initialized, make sure the + # partition table partition gets added to the device tree. + if device.partedDisk.type == "mac" and len(device.partedDisk.partitions) == 1: + name = device.partedDisk.partitions[0].getDeviceNodeName() + if not self.getDeviceByName(name): + partDevice = PartitionDevice(name, exists=True, parents=[device]) + self._addDevice(partDevice) + return device def addUdevOpticalDevice(self, info): |