I need to perform various things on my custom ISO server installation during the first boot. It needs to be completely hands and internet free.
What are my options here? I see the pre and post install scripts with kickstart but they don't seem to be doing anything. For instance, I tried to set my hostname with a post install script and it didn't work, but the other options in the ks file did.
The things I need to do on first run are:
- Set a unique hostname
- Add lines to a conf file
- Place down a public key
- Place a custom shell for a certain user
- Set firewall rules with ufw
- Set a few internet related things and connect out to chef over vpn
I suppose most if not all of these are just static files that can be placed in a custom .deb file on the ISO and be "installed" during system installation. For those that require running services and however, what is the normal way to go about this?