Re: Keeping up with the changes

Roderick Johnstone <[email protected]>
Newsgroups gmane.linux.redhat.kickstart.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.