From c2db8285a16d1057c63d8ec660eff4118d8f594c Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Thu, 10 Aug 2017 15:53:18 +0100 Subject: [PATCH] Disable 64bit filesystem feature --- export-image/prerun.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/export-image/prerun.sh b/export-image/prerun.sh index 7acfedc..f687785 100755 --- a/export-image/prerun.sh +++ b/export-image/prerun.sh @@ -52,9 +52,11 @@ echo "/boot: offset $BOOT_OFFSET, length $BOOT_LENGTH" echo "/: offset $ROOT_OFFSET, length $ROOT_LENGTH" ROOT_FEATURES="^huge_file" -if grep -q "metadata_csum" /etc/mke2fs.conf; then - ROOT_FEATURES="^metadata_csum,$ROOT_FEATURES" -fi +for FEATURE in metadata_csum 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 mkfs.ext4 -O $ROOT_FEATURES $ROOT_DEV > /dev/null