[PATCH 14/16] Fix a bug allocating fixed-size partitions.
David Lehman
dlehman at redhat.com
Thu Oct 11 23:46:04 UTC 2012
This was only triggered if none of the partitions being allocated
were growable, which has become a very rare case.
---
pyanaconda/storage/partitioning.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/pyanaconda/storage/partitioning.py b/pyanaconda/storage/partitioning.py
index 4f14cb5..0b9e99c 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
--
1.7.7.6
More information about the anaconda-patches
mailing list