I'm new-ish to kickstart. I've been spending some time trolling through docs on the Internet and I can't seem to find a reliable example of how to configure the network interfaces (plural) in a %post script.
Seems that RH deprecates things in anaconda (bootproto, asknetwork), and those options don't account for hostname, etc.
Our systems have two interfaces, eth0 and eth1. I'd like to have the install change (chvt) and ask for the relevant IP configuration, hostname, DNS servers, etc., then proceed. Also, might be good to write a script that will automate even that at some point.
I also do not want NetworkManager touching the interfaces - who's bright idea was that.
So I can see where the initial kickstart config could assign bogus network addresses, like 1.1.1.1 and 2.2.2.2 respectively, then sed/edit those in a %post script.
Can someone help me with a working example, or examples?
Thanks!
Seems that RH deprecates things in anaconda (bootproto, asknetwork), and those options don't account for hostname, etc.
Our systems have two interfaces, eth0 and eth1. I'd like to have the install change (chvt) and ask for the relevant IP configuration, hostname, DNS servers, etc., then proceed. Also, might be good to write a script that will automate even that at some point.
I also do not want NetworkManager touching the interfaces - who's bright idea was that.
So I can see where the initial kickstart config could assign bogus network addresses, like 1.1.1.1 and 2.2.2.2 respectively, then sed/edit those in a %post script.
Can someone help me with a working example, or examples?
Thanks!