summaryrefslogtreecommitdiffstats
path: root/storage/partitioning.py
diff options
context:
space:
mode:
Diffstat (limited to 'storage/partitioning.py')
-rw-r--r--storage/partitioning.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/storage/partitioning.py b/storage/partitioning.py
index 8e8d080d5..0e035d3c1 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -356,6 +356,12 @@ def partitionCompare(part1, part2):
"""
ret = 0
+ if part1.req_base_weight:
+ ret -= part1.req_base_weight
+
+ if part2.req_base_weight:
+ ret += part2.req_base_weight
+
# bootable partitions to the front
ret -= cmp(part1.req_bootable, part2.req_bootable) * 1000