summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-06-26 03:41:35 +0000
committerJeremy Katz <katzj@redhat.com>2001-06-26 03:41:35 +0000
commit178359ae0050d0d8a02a7f4c3a9a4dc7ff9fbd5d (patch)
tree633e59750f3c6f0cbc484e6507fa6867c99f1b4e /iw
parent81223fae70ebb9726ee78ce56ef7d4a89fd5423d (diff)
downloadanaconda-178359ae0050d0d8a02a7f4c3a9a4dc7ff9fbd5d.tar.gz
anaconda-178359ae0050d0d8a02a7f4c3a9a4dc7ff9fbd5d.tar.xz
anaconda-178359ae0050d0d8a02a7f4c3a9a4dc7ff9fbd5d.zip
remove the logicals when the extended is deleted
Diffstat (limited to 'iw')
-rw-r--r--iw/partition_gui.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/iw/partition_gui.py b/iw/partition_gui.py
index 509c33f5b..8ba6c9c7e 100644
--- a/iw/partition_gui.py
+++ b/iw/partition_gui.py
@@ -941,7 +941,11 @@ class PartitionWindow(InstallWindow):
self.partitions.removeRequest(request)
if request.type == REQUEST_PREEXIST:
# get the drive
- drive = partition.geom.disk.dev.path[5:]
+ drive = get_partition_drive(partition)
+
+ if partition.type & parted.PARTITION_EXTENDED:
+ deleteAllLogicalPartitions(partition, self.partitions)
+
delete = DeleteSpec(drive, partition.geom.start, partition.geom.end)
self.partitions.addDelete(delete)
else: # shouldn't happen