export-image: run du with -x to avoid crossing filesystem boundaries
Fixes #537
This commit is contained in:
parent
5780b1ff64
commit
f1c166a283
@ -10,7 +10,7 @@ rm -rf "${ROOTFS_DIR}"
|
|||||||
mkdir -p "${ROOTFS_DIR}"
|
mkdir -p "${ROOTFS_DIR}"
|
||||||
|
|
||||||
BOOT_SIZE="$((512 * 1024 * 1024))"
|
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
|
# All partition sizes and starts will be aligned to this size
|
||||||
ALIGN="$((4 * 1024 * 1024))"
|
ALIGN="$((4 * 1024 * 1024))"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user