summaryrefslogtreecommitdiffstats
path: root/autopart.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2002-11-20 17:30:44 +0000
committerMatt Wilson <msw@redhat.com>2002-11-20 17:30:44 +0000
commite3648f9819afa890f70011e541f3423a1a4c8b7a (patch)
treef0b06d79e5a000f1da8962bad9ba26a9c97108b3 /autopart.py
parentc7e5d09b0f1a471b95011767328130501afd8432 (diff)
downloadanaconda-e3648f9819afa890f70011e541f3423a1a4c8b7a.tar.gz
anaconda-e3648f9819afa890f70011e541f3423a1a4c8b7a.tar.xz
anaconda-e3648f9819afa890f70011e541f3423a1a4c8b7a.zip
fix freespace partitioning (#78196)
Diffstat (limited to 'autopart.py')
-rw-r--r--autopart.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/autopart.py b/autopart.py
index 9d8dfff7d..55ba18dbd 100644
--- a/autopart.py
+++ b/autopart.py
@@ -217,7 +217,7 @@ def fitConstrained(diskset, requests, primOnly=0, newParts = None):
partType = parted.PARTITION_PRIMARY
elif ret == parted.PARTITION_EXTENDED:
newp = disk.partition_new(parted.PARTITION_EXTENDED, None, startSec, endSec)
- constraint = disk.constraint_any()
+ constraint = disk.dev.constraint_any()
disk.add_partition(newp, constraint)
disk.maximize_partition (newp, constraint)
newParts.parts.append(newp)
@@ -226,7 +226,7 @@ def fitConstrained(diskset, requests, primOnly=0, newParts = None):
else: # shouldn't get here
raise PartitioningError, "Impossible partition type to create"
newp = disk.partition_new (partType, fsType, startSec, endSec)
- constraint = disk.constraint_any ()
+ constraint = disk.dev.constraint_any ()
try:
disk.add_partition (newp, constraint)