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>
Newer versions of docker generate the following warning
- LegacyKeyValueFormat: "ENV key=value" should be used instead of
legacy "ENV key value" format (line 4)
Setting kernel=kernel8.img while auto_initramfs=1 currently still loads initamfs_2712.
This can cause issues on systems which require drivers compiled as modules to boot.
Until this is fixed in the bootloader, users should specify initramfs options as well.
Also, move the PAGESIZE check before the arch-test checks to make the output clearer.
* Allow export image customisation
Add new variable EXPORT_CONFIG_DIR to set the location of the scripts
pigen will run when exporting an image. Setting this is optional. If
not specified, the current location is retained.
By utilising STAGE_LIST AND EXPORT_CONFIG_DIR, a user can construct
custom images out-of-tree without modification to any defaults.
(cherry picked from commit e5e6ceeaf46f52f77b759d3d35aef8bbd0a69c8b)
* Shellcheck and style fixes
Fixed shellcheck warnings and made the changes more consistent with the surrounding code
---------
Co-authored-by: Serge Schneider <serge@raspberrypi.com>
* build.sh: Unmount intermediates on trap
Iterate through image files which might be in use and detach them
Avoid silent failures - let the user know whether the build failed
* common: update unmount_image
Use udevadm settle instead of sleep if possible
Use losetup's -j option to find the loop device associated with a give image file
* build.sh: update clean-up trap term
---------
Co-authored-by: Serge Schneider <serge@raspberrypi.com>