diff options
| author | Jonathan Bell <jonathan@raspberrypi.com> | 2025-03-12 14:38:13 +0000 |
|---|---|---|
| committer | XECDesign <XECDesign@users.noreply.github.com> | 2025-03-13 15:58:40 +0000 |
| commit | f621f9e27942ae0776b0a4d1bf4065e7165bdf88 (patch) | |
| tree | 4e67601f5adca9cceb6de31391dc1e0d36afe93f /export-image | |
| parent | e071d0de36561a13039bf4d561f5204a7ecd8e34 (diff) | |
Align partition start boundaries to 8M
Higher-capacity cards (particularly Raspberry Pi 128GB A2) have an 8MB
preferred erase size, which is a good indication of the flash block size.
Other large cards may also benefit.
Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
Diffstat (limited to 'export-image')
| -rwxr-xr-x | export-image/prerun.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/export-image/prerun.sh b/export-image/prerun.sh index 6a5309a..9f1b496 100755 --- a/export-image/prerun.sh +++ b/export-image/prerun.sh @@ -13,7 +13,7 @@ BOOT_SIZE="$((512 * 1024 * 1024))" 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))" +ALIGN="$((8 * 1024 * 1024))" # Add this much space to the calculated file size. This allows for # some overhead (since actual space usage is usually rounded up to the # filesystem block size) and gives some free space on the resulting |
