From 00da85177cdd6a1446381fb45fd5439c9bba860a Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Wed, 4 May 2022 15:21:12 +0100 Subject: Adjust partition formatting and mount options Format the root partition with the metadata_csum option Format the boot partition with 4 sectors per cluster for a slight performance boost Remove 'flush' mount option from the boot partition --- export-image/prerun.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'export-image') diff --git a/export-image/prerun.sh b/export-image/prerun.sh index fad7f80..145d61e 100755 --- a/export-image/prerun.sh +++ b/export-image/prerun.sh @@ -70,12 +70,12 @@ if [ "${NO_PRERUN_QCOW2}" = "0" ]; then echo "/: offset $ROOT_OFFSET, length $ROOT_LENGTH" ROOT_FEATURES="^huge_file" - for FEATURE in metadata_csum 64bit; do + for FEATURE in 64bit; do if grep -q "$FEATURE" /etc/mke2fs.conf; then ROOT_FEATURES="^$FEATURE,$ROOT_FEATURES" fi done - mkdosfs -n boot -F 32 -v "$BOOT_DEV" > /dev/null + mkdosfs -n boot -F 32 -s 4 -v "$BOOT_DEV" > /dev/null mkfs.ext4 -L rootfs -O "$ROOT_FEATURES" "$ROOT_DEV" > /dev/null mount -v "$ROOT_DEV" "${ROOTFS_DIR}" -t ext4 -- cgit v1.2.3