From 281164b2208ede1f99180ff5e192aede6db46858 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 28 Apr 2011 16:55:52 -0700 Subject: Tell parted to align disk partition Bug 7038 Align the created disk partition for both install-system and initial install-image. Note: can't fix existing systems where disk is already partitioned. They will just have to suffer with poor performance. --- scripts/install-system | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/install-system') diff --git a/scripts/install-system b/scripts/install-system index 9a860d63..99782fb1 100755 --- a/scripts/install-system +++ b/scripts/install-system @@ -867,7 +867,8 @@ create_partitions() { echo "Creating root partition on /dev/$ldrive" >> $INSTALL_LOG # make the root partition - output=$(parted -s /dev/$ldrive mkpart primary $start_offset $root_part_size) + # align at optimal block boundary + output=$(parted -s -a optimal /dev/$ldrive mkpart primary $start_offset $root_part_size) status=$? if [ "$status" != 0 ]; then echo -e "Error creating primary partition on $ldrive.\nPlease see $INSTALL_LOG for more details.\nExiting..." -- cgit v1.2.3