I have a base config that I am happy with. The distro is Raspbian.
I would like to create 10s of this same SD card with some subtle differences to each card image.
For example, I would like to set the hostname of each device in sequence. For example: pi-1, pi-2, pi-3 etc..
Is there a way I can script this stuff? Ideally I want a script that runs and will update whatever variables I want. It will then write to the SD card inserted, prompt me to replace the SD card with a new fresh one, press return to continue.
Is this possible or should I take the pain. Dupe a bunch of cards and manually edit the hostname?
Thanks