From 9ed15a5a308f4addab8b619680a19cf703f37876 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Kn=C3=B6ppler?= <6317548+theCalcaholic@users.noreply.github.com> Date: Tue, 10 Oct 2023 20:17:29 +0200 Subject: [PATCH] build-SD-armbian.sh: Patch rootfs size determination in armbian build code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com> --- build/build-SD-armbian.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/build-SD-armbian.sh b/build/build-SD-armbian.sh index 2fca48920..7ce2de319 100755 --- a/build/build-SD-armbian.sh +++ b/build/build-SD-armbian.sh @@ -32,6 +32,10 @@ prepare_dirs # tmp cache output # get latest armbian [[ -d armbian ]] || git clone --depth 1 --branch v23.02 https://github.com/armbian/build armbian ( cd armbian && git checkout v23.02 ) +sed -i -e '/export rootfs_size=/s/du -sm/du --apparent-size -sm/' armbian/lib/functions/image/partitioning.sh +sed -i -e '/export rootfs_size_mib=/s/du -sm/du --apparent-size -sm/' armbian/lib/functions/main/rootfs-image.sh +sed -i -e 's/du /du --apparent-size /' armbian/lib/functions/image/rootfs-to-image.sh + # add NCP modifications mkdir -p armbian/userpatches armbian/userpatches/overlay @@ -53,7 +57,6 @@ KERNEL_CONFIGURE=prebuilt BUILD_DESKTOP=no BUILD_MINIMAL=yes USE_CCACHE=yes -FAST_CREATE_IMAGE=no EOF [[ "$CLEAN" == "0" ]] && { cat >> "$CONF" <