NFS/dhcp/tftp on eth1, kernel search NFS it on eth0
Thomas Neumann
blacky+fai at fluffbunny.de
Mon Oct 6 07:45:18 CEST 2008
Cristian Ionescu-Idbohrn schrieb:
> udev and/or ifrename may help. That implies you provide some sort of
> configuration file(s).
>
How do I supply a configuration file, if it is the nfsroot that is not
being mounted? Maybe if one would try to put the udev-config into the
initrd. Hm. Didn't think of this before. Need some glue beforehand though.
- boot initrd
- initrd starts a script which detects mac-addresses, tries to figure
out the correct one and
writes an udev/ifrename rule
(which is kinda easy - we assign these macs manually - last three
bytes correspond to the
last three octets from the ip address)
- udev starts and hopefully assigns the correct interface
- fetch nfsroot
Big question: Is udev started from the initrd or from the nfsroot?
Haven't looked to close into the initrd yet, maybe someone can tell
without looking. I guess the later's the case. Then I'd have to rebuild
the initrd. .oO(Is it worth the trouble?)
Wouldn't help the OP though. Since he's using physical nics, guessing
the correct interface is a lot harder. Maybe by keeping a list of
"valid" macs. But this means rebuilding the initrd each time a new
machine is added. *yuck*
tschüß
thomas
More information about the linux-fai
mailing list