Hi,
i think we have a chicken-egg problem with bootpc_init.
the code in autoconf decides what to mount as root depending on various
things including nfs_diskless_valid
nfs_diskless_valid is set to non-zero value by either the boot rom,
or by bootpc_init() (or by a config option BOOTP_NFSROOT, but that's
very annoying).
Unfortunately bootpc_init() is only called by nfs_mountroot(), which is a
bit too late since the decision has already been taken not to call
nfs_mountroot() !
Could we move the call to bootpc_init() earlier, e.g. in configure()
(file autoconf.c) ?
the function is passed a pointer to the nfs_diskless structure, and one
which is curproc ...
Any idea before i just test this ?
cheers
luigi
-----------------------------+--------------------------------------
Luigi Rizzo | Dip. di Ingegneria dell'Informazione
email: luigi@iet.unipi.it | Universita' di Pisa
tel: +39-50-568533 | via Diotisalvi 2, 56126 PISA (Italy)
fax: +39-50-568522 | http://www.iet.unipi.it/~luigi/
_____________________________|______________________________________
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message