From owner-freebsd-bugs@FreeBSD.ORG Mon Jan 16 07:50:04 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE26916A41F for ; Mon, 16 Jan 2006 07:50:04 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AFB8443D45 for ; Mon, 16 Jan 2006 07:50:04 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k0G7o4b6070689 for ; Mon, 16 Jan 2006 07:50:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k0G7o4Tj070688; Mon, 16 Jan 2006 07:50:04 GMT (envelope-from gnats) Date: Mon, 16 Jan 2006 07:50:04 GMT Message-Id: <200601160750.k0G7o4Tj070688@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Ruben Kerkhof Cc: Subject: Re: kern/91720: pxeboot always tries to do an rpc call to an nfs-server X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ruben Kerkhof List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jan 2006 07:50:05 -0000 The following reply was made to PR kern/91720; it has been noted by GNATS. From: Ruben Kerkhof To: Ceri Davies , freebsd-gnats-submit@freebsd.org Cc: Subject: Re: kern/91720: pxeboot always tries to do an rpc call to an nfs-server Date: Mon, 16 Jan 2006 08:40:11 +0100 On 1/16/06, Ceri Davies wrote: > On Sun, Jan 15, 2006 at 06:03:57PM +0100, Ruben Kerkhof wrote: > > Hi Ceri, > > > > It does indeed do what I want, but the issue is that it takes a while f= or > > pxeboot to notice that it can't mount nfs. > > Since I compiled the loader with LOADER_TFTP_SUPPORT, I don't think it > > should try to do an rpc call in the first place. > > This slows down the booting process. Although the nfs mount error is > > harmless, it makes people (like me) think there's something wrong. > > > > If my memory is right, it behaved ok before patch 1.21 ( > > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/boot/i386/libi386/pxe.c.d= iff?r1=3D1.20&r2=3D1.21 > > ) > > Hi Ruben, > > Thanks for the explanation. I've attached a patch which sounds like it > will fix this, but I don't have an environment to test either TFTP or > NFS booting, so take it with a large pinch of salt. > > Ceri > -- > That must be wonderful! I don't understand it at all. > -- Alice > > > Hi Ceri, I did the same thing as you did with the patch, comment out the call to pxe_setnfshandle and that works ok. I will test the patch tonight however. Is LOADER_NFS_SUPPORT always defined by default? If not, the loader can't boot from either NFS or TFTP if it isn't explicitly compiled with one of the two options. In that case I would suggest something like: +#ifndef LOADER_TFTP_SUPPORT /* get an NFS filehandle for our root filesystem */ pxe_setnfshandle(rootpath); +#endif Regards, Ruben