summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerge Schneider <serge@raspberrypi.com>2024-04-29 14:38:09 +0100
committerSerge Schneider <serge@raspberrypi.com>2024-04-29 14:38:09 +0100
commit64e205739c4f3ebfa2eea697314dbfe14105cb51 (patch)
treeb6300c18d2bf79cedb6ffcad3f9b4779124e08d1
parent2c29fc27c594b08fc1e7d96e96c89da6df2e0304 (diff)
parentf1c166a2833950a7c44fe19b01780723635a7aa3 (diff)
Merge branch 'master' into arm64
-rwxr-xr-xexport-image/prerun.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/export-image/prerun.sh b/export-image/prerun.sh
index d9778d1..6a5309a 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 --apparent-size -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))"