[PATCH 1/1] Make sure that forced primary partition are first.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In the new_partitions list (partitioning.py:617) we must make sure that
the forced primary partitions appear first so we don't end up trying to
put a primary partition in an extended one in partitioning.py:696.
(#493058)
---
 storage/partitioning.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/storage/partitioning.py b/storage/partitioning.py
index 663d1f1..5c028d0 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -366,12 +366,12 @@ def partitionCompare(part1, part2):
     # bootable partitions to the front
     ret -= cmp(part1.req_bootable, part2.req_bootable) * 1000
 
+    # primary-only to the front of the list
+    ret -= cmp(part1.req_primary, part2.req_primary) * 600
+
     # more specific disk specs to the front of the list
     ret += cmp(len(part1.parents), len(part2.parents)) * 500
 
-    # primary-only to the front of the list
-    ret -= cmp(part1.req_primary, part2.req_primary) * 200
-
     # larger requests go to the front of the list
     ret -= cmp(part1.req_base_size, part2.req_base_size) * 100
 
-- 
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux