kern/91720: pxeboot always tries to do an rpc call to an nfs-server

Ruben Kerkhof ruben.kerkhof at gmail.com
Sun Jan 15 23:50:05 PST 2006


The following reply was made to PR kern/91720; it has been noted by GNATS.

From: Ruben Kerkhof <ruben.kerkhof at gmail.com>
To: Ceri Davies <ceri at submonkey.net>, freebsd-gnats-submit at 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 <ceri at submonkey.net> 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


More information about the freebsd-bugs mailing list