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" <