Network interfaces file in NFSROOT
dave at socialstrata.com
Fri Feb 24 21:52:07 CET 2012
Why an nfs hook? The nfs root doesn't change install to install. I can't remember rebuilding my nfs root at all in the last months. Why not simply edit that into your $NFSROOT/etc/network/interfaces and be done with it? It may well be ignored though, as you already have an interface before the NFSROOT is even mounted.
Are you asking how to add this line to the finished server, as installed server by FAI?
If that is the case I have in $FAICONFIG/scripts/debian/ a 20-interfaces script that creates the /etc/network/interfaces file. Cannot remember if that is default FAI or not as it has been a long while since we built our FAI install. If it is not I can provide the for you to edit as you need.
On Feb 24, 2012, at 8:13 AM, Jeffrey Stolte wrote:
> I would like to add a line like the following to /etc/network/interfaces
> in the FAI NFSROOT:
> iface lo inet loopback
> post-up /opt/sbin/my_script.sh
> I've created an nfsroot-hook
> Jeff Stolte
More information about the linux-fai