[PATCH 4/5] Try to align end sector up when aligning new partitions.

David Lehman dlehman at redhat.com
Tue Sep 23 19:14:16 UTC 2014


Resolves: rhbz#1090477
---
 blivet/partitioning.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/blivet/partitioning.py b/blivet/partitioning.py
index 5b7b777..3cd94f4 100644
--- a/blivet/partitioning.py
+++ b/blivet/partitioning.py
@@ -725,7 +725,7 @@ def addPartition(disklabel, free, part_type, size, start=None, end=None):
             end = start + length - 1
 
         if not disklabel.endAlignment.isAligned(free, end):
-            end = disklabel.endAlignment.alignNearest(free, end)
+            end = disklabel.endAlignment.alignUp(free, end)
             log.debug("adjusted length from %d to %d", length, end - start + 1)
             if start > end:
                 raise PartitioningError(_("unable to allocate aligned partition"))
-- 
1.9.3



More information about the anaconda-patches mailing list