From owner-freebsd-hackers Thu Feb 26 06:33:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA25534 for freebsd-hackers-outgoing; Thu, 26 Feb 1998 06:33:09 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id GAA25487 for ; Thu, 26 Feb 1998 06:32:55 -0800 (PST) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id OAA13677; Thu, 26 Feb 1998 14:00:01 +0100 From: Luigi Rizzo Message-Id: <199802261300.OAA13677@labinfo.iet.unipi.it> Subject: a chicken-egg problem with bootp and nfs_mountroot To: hackers@FreeBSD.ORG Date: Thu, 26 Feb 1998 14:00:00 +0100 (MET) X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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