Networking & kickstart?
John Oliver
joliver at john-oliver.net
Thu May 3 16:43:14 UTC 2012
I'm using a script in %pre that prompts for IP, hostname, etc. The
asnwers are dumped out as variables and used to set up the config files
in %post All works well.
Now, it's being used to install the OS on an HP Proliant that's in a
remote datacenter via iLO, and it takes about an hour to transfer all of
the files over iLO. So I got clever, commented out "cdrom" and added url
--url http://ip.of.my.yum.server/path/to/os/ Then, at the end of %pre,
I added /sbin/ifconfig eth0 $IP netmask $NM up However... it appears
that kickstart sees the "url" directive and therefore assumes that it
must have networking RIGHT NOW! It tries DHCP, fails, then runs %pre.
I'm not certain if it ever raises the interface or not, but it complains
"Unable to read package metadat"
Is there a way to do what I want to do... NOT configure eth0 in
kickstart, but the way I'm doing it, raise the interface, and install
from a network source instead of the disc?
--
***********************************************************************
* John Oliver http://www.john-oliver.net/ *
* *
***********************************************************************
More information about the Kickstart-list
mailing list