Skip to content

Commit

Permalink
build-SD-armbian.sh: Patch rootfs size determination in armbian build…
Browse files Browse the repository at this point in the history
… code

Signed-off-by: Tobias Knöppler <[email protected]>
  • Loading branch information
theCalcaholic committed Oct 10, 2023
1 parent f5a71da commit 9ed15a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/build-SD-armbian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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" <<EOF
Expand Down

0 comments on commit 9ed15a5

Please sign in to comment.