I want to build a Raspberry Pi image configured with a customised set of packages and configuration ready to image and distribute to push onto a SD card and boot from.
i.e. I want to automate the manual process of:
- Download Raspberry Pi image
- 'Flash' to an SD card
- Boot up
apt update && apt install minicom
vi /etc/minicom/minirc.dfl
...
- Shut down Raspberry Pi
- Save an image of the configured system
- Upload image online
What are the most appropriate existing tools to automate such a build?