Skip to content

Commit 1724032

Browse files
committed
build-SD-armbian.sh: Patch rootfs size determination in armbian build code
Signed-off-by: Tobias Knöppler <[email protected]>
1 parent f5a71da commit 1724032

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build/build-SD-armbian.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ prepare_dirs # tmp cache output
3232
# get latest armbian
3333
[[ -d armbian ]] || git clone --depth 1 --branch v23.02 https://github.com/armbian/build armbian
3434
( cd armbian && git checkout v23.02 )
35+
sed -i -e '/export rootfs_size=/s/du -sm/du --apparent-size -sm/' armbian/lib/functions/image/partitioning.sh
36+
sed -i -e '/export rootfs_size_mib=/s/du -sm/du --apparent-size -sm/' armbian/lib/functions/main/rootfs-image.sh
37+
sed -i -e '/export rootfs_size_mib=/s/du -sm/du --apparent-size -sm/' armbian/lib/functions/image/rootfs-to-image.sh
38+
3539

3640
# add NCP modifications
3741
mkdir -p armbian/userpatches armbian/userpatches/overlay
@@ -53,7 +57,6 @@ KERNEL_CONFIGURE=prebuilt
5357
BUILD_DESKTOP=no
5458
BUILD_MINIMAL=yes
5559
USE_CCACHE=yes
56-
FAST_CREATE_IMAGE=no
5760
EOF
5861
[[ "$CLEAN" == "0" ]] && {
5962
cat >> "$CONF" <<EOF

0 commit comments

Comments
 (0)