summaryrefslogtreecommitdiff
path: root/export-image
diff options
context:
space:
mode:
authorSerge Schneider <serge@raspberrypi.org>2017-08-10 15:53:18 +0100
committerSerge Schneider <serge@raspberrypi.org>2017-08-11 17:39:58 +0100
commitc2db8285a16d1057c63d8ec660eff4118d8f594c (patch)
treed7bd3b04d50dc66efec8b093340208898762901c /export-image
parent3fe8d799479017c119e76ea96ded66cf246c00f9 (diff)
Disable 64bit filesystem feature
Diffstat (limited to 'export-image')
-rwxr-xr-xexport-image/prerun.sh8
1 files 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