summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-11-26 22:51:44 +0000
committerJeremy Katz <katzj@redhat.com>2001-11-26 22:51:44 +0000
commit1a069271b3e1f22f4205b58a3c2de4c331fdb47e (patch)
tree095cd5c241d2b0d62d09635add62ab038d7dd764
parent585db9fcd6afc00f077db496dd5d5aed30e56f3f (diff)
downloadanaconda-1a069271b3e1f22f4205b58a3c2de4c331fdb47e.tar.gz
anaconda-1a069271b3e1f22f4205b58a3c2de4c331fdb47e.tar.xz
anaconda-1a069271b3e1f22f4205b58a3c2de4c331fdb47e.zip
make partition ordering stronger (#52809).
-rw-r--r--partitioning.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/partitioning.py b/partitioning.py
index 53f2a7958..8ec4a6931 100644
--- a/partitioning.py
+++ b/partitioning.py
@@ -1042,6 +1042,13 @@ class Partitions:
index = self.requests.index(request)
self.requests[n] = request
self.requests[index] = tmp
+ elif (request.size and self.requests[n].size and
+ (request.size == self.requests[n].size) and
+ (request.uniqueID < self.requests[n].uniqueID)):
+ tmp = self.requests[n]
+ index = self.requests.index(request)
+ self.requests[n] = request
+ self.requests[index] = tmp
n = n + 1
tmp = self.getBootableRequest()