diff options
author | Matt Wilson <msw@redhat.com> | 2002-11-20 17:30:44 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2002-11-20 17:30:44 +0000 |
commit | e3648f9819afa890f70011e541f3423a1a4c8b7a (patch) | |
tree | f0b06d79e5a000f1da8962bad9ba26a9c97108b3 /autopart.py | |
parent | c7e5d09b0f1a471b95011767328130501afd8432 (diff) | |
download | anaconda-e3648f9819afa890f70011e541f3423a1a4c8b7a.tar.gz anaconda-e3648f9819afa890f70011e541f3423a1a4c8b7a.tar.xz anaconda-e3648f9819afa890f70011e541f3423a1a4c8b7a.zip |
fix freespace partitioning (#78196)
Diffstat (limited to 'autopart.py')
-rw-r--r-- | autopart.py | 4 |
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) |