summaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2010-02-06 10:37:56 +0100
committerHans de Goede <hdegoede@redhat.com>2010-02-06 10:37:56 +0100
commit4daab221a3caff652964580b00348b4751a4d872 (patch)
tree3bc359e672f0bc0f5b80071d123c5864d72809ce /storage
parent3b90bea90eb3c65f34e358babcb866b1514a4994 (diff)
downloadanaconda-4daab221a3caff652964580b00348b4751a4d872.tar.gz
anaconda-4daab221a3caff652964580b00348b4751a4d872.tar.xz
anaconda-4daab221a3caff652964580b00348b4751a4d872.zip
Keep the end sector aligned when resizing partitions (#560647)
This is esp. important with DASD's as these will only accept properly aligned partitions.
Diffstat (limited to 'storage')
-rw-r--r--storage/devices.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/storage/devices.py b/storage/devices.py
index b6628a60b..0243e34b4 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -1279,6 +1279,9 @@ class PartitionDevice(StorageDevice):
newGeometry = parted.Geometry(device=currentDev,
start=currentGeom.start,
length=newLen)
+ # and align the end sector
+ newGeometry.end = self.disk.format.endAlignment.alignDown(newGeometry,
+ newGeometry.end)
constraint = parted.Constraint(exactGeom=newGeometry)
return (constraint, newGeometry)