Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker/build-rootfs-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fi
mkdir -p "$rootfs/dev" "$rootfs/proc" "$rootfs/sys" "$rootfs/tmp" "$rootfs/run" "$rootfs/mnt"
chmod 1777 "$rootfs/tmp"

used_kib=$(du -sk "$rootfs" | awk '{print $1}')
used_kib=$(du -sk --apparent-size "$rootfs" | awk '{print $1}')
# Give ext4 enough headroom for metadata and future small additions, then shrink
# the filesystem after population so the final raw image stays compact.
size_mib=$(( (used_kib * 13 / 10 + 262144 + 1023) / 1024 ))
Expand Down
Loading