Skip to content

Commit

Permalink
export-image: run du with -x to avoid crossing filesystem boundaries
Browse files Browse the repository at this point in the history
Fixes #537
  • Loading branch information
XECDesign committed Apr 29, 2024
1 parent 5780b1f commit f1c166a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion export-image/prerun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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))"
Expand Down

0 comments on commit f1c166a

Please sign in to comment.