summaryrefslogtreecommitdiffstats
path: root/autopart.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-07-11 07:02:24 +0000
committerJeremy Katz <katzj@redhat.com>2001-07-11 07:02:24 +0000
commitae88a3fa73a1262bb173f56b4145425d008d04e4 (patch)
tree83a333940b3f7f1fcacbead2f9132d83ebb08065 /autopart.py
parent74a31334af83cd8c7ceb67beeadff58e01de523f (diff)
downloadanaconda-ae88a3fa73a1262bb173f56b4145425d008d04e4.tar.gz
anaconda-ae88a3fa73a1262bb173f56b4145425d008d04e4.tar.xz
anaconda-ae88a3fa73a1262bb173f56b4145425d008d04e4.zip
how did this ever work?
Diffstat (limited to 'autopart.py')
-rw-r--r--autopart.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/autopart.py b/autopart.py
index c7c0a1048..f426a93f8 100644
--- a/autopart.py
+++ b/autopart.py
@@ -154,10 +154,12 @@ def fitConstrained(diskset, requests, primOnly=0, newParts = None):
if disk.type.check_feature(parted.DISK_TYPE_EXTENDED) and disk.extended_partition:
- if (disk.extended_part.geom.start < startSec) and (disk.extended_part.geom.end > endSec):
+ if (disk.extended_partition.geom.start < startSec) and (disk.extended_partition.geom.end > endSec):
partType = parted.PARTITION_LOGICAL
if request.primary: # they've required a primary and we can't do it
return PARTITION_FAIL
+ else:
+ partType = parted.PARTITION_PRIMARY
else:
# XXX need a better way to do primary vs logical stuff
ret = bestPartType(disk, request)