summaryrefslogtreecommitdiffstats
path: root/pyanaconda/storage
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2012-10-11 11:58:31 -0500
committerDavid Lehman <dlehman@redhat.com>2012-10-12 09:24:55 -0500
commit095bf952d71ca7b356069fd436b65582eb42b77d (patch)
tree7762ebe2218769be1ae2481ac4f9ca1a4924e8b3 /pyanaconda/storage
parent44643850080a40f445c563c2aa61b4c8eb33bcc1 (diff)
downloadanaconda-095bf952d71ca7b356069fd436b65582eb42b77d.tar.gz
anaconda-095bf952d71ca7b356069fd436b65582eb42b77d.tar.xz
anaconda-095bf952d71ca7b356069fd436b65582eb42b77d.zip
Fix a bug allocating fixed-size partitions.
This was only triggered if none of the partitions being allocated were growable, which has become a very rare case.
Diffstat (limited to 'pyanaconda/storage')
-rw-r--r--pyanaconda/storage/partitioning.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyanaconda/storage/partitioning.py b/pyanaconda/storage/partitioning.py
index 4f14cb5f6..0b9e99c4f 100644
--- a/pyanaconda/storage/partitioning.py
+++ b/pyanaconda/storage/partitioning.py
@@ -1006,7 +1006,7 @@ def allocatePartitions(storage, disks, partitions, freespace):
# update the chosen free region unless the previous
# choice yielded greater total growth
- if new_growth <= growth:
+ if free is not None and new_growth <= growth:
log.debug("keeping old free: %d <= %d" % (new_growth,
growth))
update = False