Whats the best way to make a custom RPi image - one with configs already applied and binaries installed etc?
@ripienaar three options:
1) pi-gen (https://github.com/RPi-Distro/pi-gen) creates full os images you can just dd write onto an SD card or volume of choice, but is most elaborate
2) rpi-imager (or the desktop equivalent) will drop a /boot/firstrun.sh script when you customize the image for hostname/ssh user, etc. Edit that with customizations. I do this and copy it and a custom cmdline.txt to a freshly imaged volume before boot for my cluster
3) if its a ubuntu pi image, use cloudinit / user-data
@ripienaar I looked into it earlier this week for my turingPi 2 cluster (https://angrydome.com/posts/k3s_tailscale/), I’m overthinking a bolt project to automate provisioning, since I can remote flash each module via the management interface, plus use tailscale’s oauth client for one time keys for first boot remote connectivity
@mrzarquon hmm yeah I guess I really need so few changes even a bash script would do :)
@ripienaar yeah - I believe firstrun.sh will be followed by a reboot to mount the resized volume, so you can probably skip service refresh, drop packages, config, wait for reboot - just don't add a gig of packages in the process.