Specify $FAI, dhcp option 170 elsewhere?

Bruce Edge bedge at troikanetworks.com
Fri Nov 8 00:34:09 CET 2002


> 
>     > Can I pass this on the kernel command line?
> 
>     > Where else can I put this configuration item, other than in the
>     > dhcp server?

> T170 is needed in the very beginning, so you can only pass it on the
> command line or receive it via DHCP or BOOTP. But you can also get you
> whole configuration directory via CVS, if you can't mount a directory
> via NFS.
> One dirty trick would be to define T170 in etc/fai/fai.conf inside the
> nfsroot.
> 
> --
> Gruss Thomas
> 

Thanks, I ended up passing it on the command line, but I also had to have a hook to pick it off the cmd line to override what came from the dhcp server.

confdir.DEFAULT:
# Hack to reset FAI_LOCATION to override dhcp value
sed -e "s/.*FAI_LOCATION=/FAI_LOCATION=/" /proc/cmdline | cut -d' ' -f1 | cut -d'=' -f2

-Bruce



More information about the linux-fai mailing list