a chicken-egg problem with bootp and nfs_mountroot

[ Available lists | Index of freebsd-hackers | Month of Feb 1998 | Week of 26 Feb 1998 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Luigi Rizzo <luigi@labinfo.iet.unipi.it>
Date
26 Feb 1998 06:33:09
Subject
a chicken-egg problem with bootp and nfs_mountroot
Message-ID
199802261300.OAA13677@labinfo.iet.unipi.it


[ Hide this part ]
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


Elapsed time: 0.069 seconds