From owner-freebsd-current@FreeBSD.ORG Wed Oct 27 16:25:05 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BAE2116A4E7; Wed, 27 Oct 2004 16:25:05 +0000 (GMT) Received: from mail.ambrisko.com (adsl-64-174-51-43.dsl.snfc21.pacbell.net [64.174.51.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E45943D2D; Wed, 27 Oct 2004 16:25:05 +0000 (GMT) (envelope-from ambrisko@ambrisko.com) Received: from server2.ambrisko.com (HELO www.ambrisko.com) (192.168.1.2) by mail.ambrisko.com with ESMTP; 27 Oct 2004 09:25:05 -0700 Received: from ambrisko.com (localhost [127.0.0.1]) by www.ambrisko.com (8.12.9p2/8.12.9) with ESMTP id i9RGP4El040590; Wed, 27 Oct 2004 09:25:04 -0700 (PDT) (envelope-from ambrisko@ambrisko.com) Received: (from ambrisko@localhost) by ambrisko.com (8.12.9p2/8.12.9/Submit) id i9RGP3tZ040585; Wed, 27 Oct 2004 09:25:03 -0700 (PDT) (envelope-from ambrisko) From: Doug Ambrisko Message-Id: <200410271625.i9RGP3tZ040585@ambrisko.com> In-Reply-To: <60398.1098860148@critter.freebsd.dk> To: Poul-Henning Kamp Date: Wed, 27 Oct 2004 09:25:03 -0700 (PDT) X-Mailer: ELM [version 2.4ME+ PL94b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII cc: freebsd-current@freebsd.org Subject: Re: Solution? Re: pxe-install on FreeBSD 5.3 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Oct 2004 16:25:06 -0000 Poul-Henning Kamp writes: | After looking again I think I'll change my position: This entire thing | should be yanked out and we should rely on the loader to set the right | variables instead. Which is why I have this patch to sys/boot: Index: i386/libi386/pxe.c =================================================================== RCS file: /usr/local/cvsroot/freebsd/src/sys/boot/i386/libi386/pxe.c,v retrieving revision 1.20 diff -u -p -r1.20 pxe.c --- i386/libi386/pxe.c 25 Aug 2003 23:28:31 -0000 1.20 +++ i386/libi386/pxe.c 27 Oct 2004 16:13:48 -0000 @@ -308,6 +308,7 @@ pxe_open(struct open_file *f, ...) } setenv("boot.nfsroot.server", inet_ntoa(rootip), 1); setenv("boot.nfsroot.path", rootpath, 1); + setenv("vfs.root.mountfrom", "nfs", 1); } } pxe_opens++; When doing a PXE netboot so NFS mounts versus something else like a RAID controller which might not actually be used. This can end up with a in use type error preventing me from initializing the RAID controller. Sometimes (I forget if it is 4.X or 5.X) I'd get the RAID controller mounted as root if it was valid. Note this change would "break" people doing a PXE style FreeBSD Install via the mdroot but for that the loader.conf on the FreeBSD install images could have vfs.root.mountfrom=md then they should be okay. I think this would be more correct then the current scheme. I would prefer this not have to be required to be set in the loader so we can boot via EtherBoot which sets the root via the BOOTP_NFSROOT option. FYI, is there any objection to this patch for now. Doug A.