Keeping up with the changes

Roderick Johnstone rmj at ast.cam.ac.uk
Wed Feb 1 16:29:25 UTC 2012


On 31/01/12 14:35, Moray Henderson (ICT) wrote:

> Is there a Thing like list-harddrivesavailable yet to help kickstarters
> work out what their network card is called - or which is the Ethernet
> and which the Wireless?  Or any tips for people wanting to do it the New
> Way?

Depending on where and when in the kickstart process you need this info
you can parse the output of /sbin/ifconfig or /sbin/route in the %post
section.

eg For our Fedora 16 network installs we boot via dhcp and
NetworkManager configures an interface. In the %post section of the
kickstart file we do something like:

netdevice=`/sbin/route | awk '$1 == "default" { print $8 }'`

to return the name of the network device. We then make some
customizations to /etc/sysconfig/network-scripts/ifcfg-${netdevice}

Roderick Johnstone




More information about the Kickstart-list mailing list