Re: Automatically change hostname when restoring from Clonezilla.
I would not know how to script this but a possible work flow could be like the following:
Prior to creating your Clonezilla image do the following on the host machine.
- Create a script for the hostname change, you could possible use [fixedname]+[last six digits of mac address] or use a similar way to create a unique name.
- create a script as a run once that calls the above script, add this new script to rc.local. This script will call the first script >> then remove the rc.local entry so it does not run again.
Just some ideas to get the brainstorm going.
Alternatively you asked about a different approach. You could remaster .iso and create your own OEM install or possibly a seed file for the installer.
Nothing is ever easy, but if it is difficult you must be doing it wrong.
Bookmarks