[PATCH 11/13] Evaulate growth potential for all reqs, even when allocating a fixed req.

David Lehman dlehman at redhat.com
Wed Aug 29 00:00:50 UTC 2012


We evaluate growth potential for the growable requests we've allocated
so far even if the request we're currently allocating is not growable.
---
 pyanaconda/storage/partitioning.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/storage/partitioning.py b/pyanaconda/storage/partitioning.py
index 552bb10..85a290e 100644
--- a/pyanaconda/storage/partitioning.py
+++ b/pyanaconda/storage/partitioning.py
@@ -924,7 +924,8 @@ def allocatePartitions(storage, disks, partitions, freespace):
 
             if best and free != best:
                 update = True
-                if _part.req_grow:
+                allocated = new_partitions[:new_partitions.index(_part)+1]
+                if any([p.req_grow for p in allocated]):
                     log.debug("evaluating growth potential for new layout")
                     new_growth = 0
                     for disk_path in disklabels.keys():
-- 
1.7.7.6



More information about the anaconda-patches mailing list