--- storage/devicetree.py | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/storage/devicetree.py b/storage/devicetree.py index efd7705..35e59fd 100644 --- a/storage/devicetree.py +++ b/storage/devicetree.py @@ -691,6 +691,11 @@ class DeviceTree(object): dev.disk is not None: # if this partition hasn't been allocated it could not have # a disk attribute + if dev.partedPartition.type == parted.PARTITION_EXTENDED and \ + len(dev.disk.partedDisk.getLogicalPartitions()) > 0: + raise ValueError("Cannot remove a extended %s partition with " + "logical partitions present." % dev.name) + dev.disk.partedDisk.removePartition(dev.partedPartition) self._devices.remove(dev) -- 1.6.0.6 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list