Re: Keeping up with the changes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list


[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux