In the GitHub page for pi-gen, there is a section on Stage Specification. However the example there is a little misleading. I wanted to run until stage3 and export an image from that stage, but because the example showed only touching the SKIP files, I did not realised that the EXPORT_IMAGE file is what the export script was looking for (until I read the export script….).
So basically in a nutshell:
- SKIP files will only instruct pi-gen which stages to skip, nothing to do with any image export
- EXPORT_IMAGE is required in the folder for which the stage you want an image to be exported.
The image suffix can be configured, just put a one-line
IMG_SUFFIX="-my-own-image" in the EXPORT_IMAGE file at the appropriate stage folder.