From b5ccc3d9379adbda67a5bd9016cb1ab7d2f2c7b5 Mon Sep 17 00:00:00 2001 From: oxmc7769 Date: Mon, 28 Apr 2025 13:10:51 -0700 Subject: [PATCH] fix maybe? --- export-image/prerun.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/export-image/prerun.sh b/export-image/prerun.sh index 1e582b5..b1585d1 100755 --- a/export-image/prerun.sh +++ b/export-image/prerun.sh @@ -10,7 +10,7 @@ rm -rf "${ROOTFS_DIR}" mkdir -p "${ROOTFS_DIR}" BOOT_SIZE="$((512 * 1024 * 1024))" -ROOT_SIZE=$(du -x -s "${EXPORT_ROOTFS_DIR}" --exclude var/cache/apt/archives --exclude boot/firmware --block-size=1 | cut -f 1) +ROOT_SIZE=$(du -x --apparent-size -s "${EXPORT_ROOTFS_DIR}" --exclude var/cache/apt/archives --exclude boot/firmware --block-size=1 | cut -f 1) # All partition sizes and starts will be aligned to this size ALIGN="$((4 * 1024 * 1024))"