On Tue, 24 Feb 2009, Seewer Philippe wrote:
Though I see a small problem: Ever thought about what happens if
there are multiple interfaces on different networks? Only one is
valid to mount the root-fs...
The Debian initramfs-tools documents as following here the rule from
the kernel's nfsroot.txt which allows an ip=... kernel command line
parameter which can contain the name of the device. Is this an option
that would fit your purpose ?
From what I know, there is no automated way to get that information
automatically in the format described, so you'd have to maintain it,
possibly in a PXE config file; it's possible to find out what
interface was used for PXE booting when using PXELINUX with the
'IPAPPEND 2' option which will add a BOOTIF=mac_address to the kernel
command line.
This might however not be enough: there could be a case where the
booting (via PXE) is done on a different network (and interface) than
the one where the root NFS is exported. I know that this sounds
complicated, but it has been implemented in real life ;-)
--
Bogdan Costescu
IWR, University of Heidelberg, INF 368, D-69120 Heidelberg, Germany
Phone: +49 6221 54 8240, Fax: +49 6221 54 8850
E-mail: bogdan.costescu@xxxxxxxxxxxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html