summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2001-07-25 21:24:39 +0000
committerMike Fulbright <msf@redhat.com>2001-07-25 21:24:39 +0000
commita3e290026aa6b6c7ae74a3f01605eed3b79d5a55 (patch)
treea64cc96c95a7c69d795d48146b636e5def1c3823
parenta7d275514b1236319724b93841fa5e02744884b3 (diff)
downloadanaconda-a3e290026aa6b6c7ae74a3f01605eed3b79d5a55.tar.gz
anaconda-a3e290026aa6b6c7ae74a3f01605eed3b79d5a55.tar.xz
anaconda-a3e290026aa6b6c7ae74a3f01605eed3b79d5a55.zip
fix problem deleting an extended we made (versus preexisting)
-rw-r--r--partitioning.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/partitioning.py b/partitioning.py
index e78e71dee..f1d2d8cdd 100644
--- a/partitioning.py
+++ b/partitioning.py
@@ -1544,8 +1544,11 @@ def doDeletePartitionByRequest(intf, requestlist, partition):
delete = DeleteSpec(drive, partition.geom.start,
partition.geom.end)
requestlist.addDelete(delete)
- else: # shouldn't happen
- raise ValueError, "Deleting a non-existent partition"
+ else: # is this a extended partition we made?
+ if partition.type & parted.PARTITION_EXTENDED:
+ deleteAllLogicalPartitions(partition, requestlist)
+ else:
+ raise ValueError, "Deleting a non-existent partition"
del partition
return 1