From 4afbc74f34068a4460a596c18d5f425fe180349e Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 17 Oct 2013 12:26:42 +0200 Subject: Calling parted with optimal aligning. --- scripts/build/binary_hdd | 4 ++-- scripts/build/source_hdd | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/build') diff --git a/scripts/build/binary_hdd b/scripts/build/binary_hdd index 6527a3c85..8697528f6 100755 --- a/scripts/build/binary_hdd +++ b/scripts/build/binary_hdd @@ -173,7 +173,7 @@ esac case "${LB_BUILD_WITH_CHROOT}" in true) Chroot chroot "parted -s ${FREELO} mklabel ${PARTITION_TABLE_TYPE}" || true - Chroot chroot "parted -s ${FREELO} mkpart primary ${PARTITION_TYPE} 0% 100%" || true + Chroot chroot "parted -a optimal -s ${FREELO} mkpart primary ${PARTITION_TYPE} 0% 100%" || true Chroot chroot "parted -s ${FREELO} set 1 boot on" || true Chroot chroot "parted -s ${FREELO} set 1 lba off" || true @@ -185,7 +185,7 @@ case "${LB_BUILD_WITH_CHROOT}" in false) parted -s ${FREELO} mklabel ${PARTITION_TABLE_TYPE} || true - parted -s ${FREELO} mkpart primary ${PARTITION_TYPE} 0% 100% || true + parted -a optimal -s ${FREELO} mkpart primary ${PARTITION_TYPE} 0% 100% || true parted -s "${FREELO}" set 1 boot on || true parted -s "${FREELO}" set 1 lba off || true diff --git a/scripts/build/source_hdd b/scripts/build/source_hdd index 2bac010b7..85709562a 100755 --- a/scripts/build/source_hdd +++ b/scripts/build/source_hdd @@ -96,7 +96,7 @@ esac Echo_warning "!!! The following error/warning messages can be ignored !!!" Losetup $FREELO ${LIVE_IMAGE_NAME}-source.img 0 Chroot chroot "parted -s ${FREELO} mklabel msdos" || true -Chroot chroot "parted -s ${FREELO} mkpart primary ${PARTITION_TYPE} 0.0 100%" || true +Chroot chroot "parted -a optimal -s ${FREELO} mkpart primary ${PARTITION_TYPE} 0.0 100%" || true Lodetach ${FREELO} Losetup $FREELO ${LIVE_IMAGE_NAME}-source.img 1 -- cgit v1.2.3