From d4cdeafa744e7d7c1f04c9adfea1e6337520318b Mon Sep 17 00:00:00 2001 From: Dimitar Gamishev Date: Mon, 10 Dec 2018 11:00:48 +0200 Subject: [PATCH] mkfs.ext4 build incommpatible with 3.10 kernels ext4, when build on Ubuntu > 16.04 --- SOFTWARE/A64-TERES/scripts/make_simpleimage.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SOFTWARE/A64-TERES/scripts/make_simpleimage.sh b/SOFTWARE/A64-TERES/scripts/make_simpleimage.sh index d519a9f5..64217124 100755 --- a/SOFTWARE/A64-TERES/scripts/make_simpleimage.sh +++ b/SOFTWARE/A64-TERES/scripts/make_simpleimage.sh @@ -106,7 +106,12 @@ rm -f ${out}1 # Create additional ext4 file system for rootfs dd if=/dev/zero bs=1M count=$((disk_size-boot_size-part_position/1024)) of=${out}2 -mkfs.ext4 -F -b 4096 -E stride=2,stripe-width=1024 -L rootfs ${out}2 + if [[ $(lsb_release -sc) == "bionic" ]]; then + mkfs.ext4 -F -O ^64bit,^csum_metadata -b 4096 -E stride=2,stripe-width=1024 -L rootfs ${out}2 + else + mkfs.ext4 -F -b 4096 -E stride=2,stripe-width=1024 -L rootfs ${out}2 +fi +#kfs.ext4 -F -b 4096 -E stride=2,stripe-width=1024 -L rootfs ${out}2 dd if=${out}2 conv=notrunc oflag=append bs=1M seek=$((part_position/1024+boot_size)) of="$out" rm -f ${out}2