chboot sub disable question/issue

Thomas Lange lange at informatik.uni-koeln.de
Wed Mar 9 21:39:01 CET 2011


>>>>> On Wed, 9 Mar 2011 12:20:52 -0800, David Dreezer <dave at socialstrata.com> said:

    > I'll have to think about the best way to get that from the client to the server and then make the file name change.

    > Thoughts? Am I headed the right way? Making it too difficult?
Here's some code that someone send me a long time ago. Maybe it
helps you to write a patch. This is subroutines-linux that needs to be
modified. fai-chboot already supports the use of the MAC address
instead of a hostname or IP address in hex.


 # Get monitoring IP
 monip=`LANG=en host $SERVER | awk '{ print $4; }' | grep '[0-9\.]'`
 # Get route interface -> MAC
 sndmac=$(LANG=en ip link show `ip route get to "$monip" | head -n1 | awk '{ print $3; }'` | tail -n1 | awk '{ print $2; }')
 sndpxe="01-$(echo $sndmac | tr : -)"

-- 
regards Thomas


More information about the linux-fai mailing list