From owner-freebsd-stable@FreeBSD.ORG Wed Jun 30 06:14:41 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A3CB8106564A for ; Wed, 30 Jun 2010 06:14:41 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.16.84]) by mx1.freebsd.org (Postfix) with ESMTP id 562AD8FC0A for ; Wed, 30 Jun 2010 06:14:40 +0000 (UTC) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by kabab.cs.huji.ac.il with esmtp id 1OTqZC-000Km1-07; Wed, 30 Jun 2010 09:14:38 +0300 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Rick Macklem In-reply-to: References: <20100625152027.GA78442@mail.ulgsm.ru> <20100626113418.GA80299@mail.ulgsm.ru> <20100628061601.GA51359@mail.ulgsm.ru> <20100628102703.GA78354@mail.ulgsm.ru> Comments: In-reply-to Rick Macklem message dated "Tue, 29 Jun 2010 11:37:29 -0400." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 30 Jun 2010 09:14:37 +0300 From: Daniel Braniss Message-ID: Cc: freebsd-stable@freebsd.org, alexs@ulgsm.ru Subject: Re: diskless boot, nfs server behind router X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2010 06:14:41 -0000 > > > On Mon, 28 Jun 2010, Daniel Braniss wrote: > > >> > >> > >> On Mon, 28 Jun 2010, alexs@ulgsm.ru wrote: > >> > >>> > >>> > >>> kernel built with: > >>> options BOOTP # Use BOOTP to obtain IP address/hostname > >>> options BOOTP_NFSROOT # NFS mount root file system using BOOTP info > >>> options BOOTP_NFSV3 > >>> > >> Try building a kernel without the above options, but with > >> options NFS_ROOT > >> specified. I think that's what most pxeboot users do and it was what > >> I had assumed when I looked at the code. > >> > >> If that doesn't fix the problem...I haven't got a solution for you, rick > > > > I use: > > options BOOTP_NFSV3 # Use NFS v3 to NFS mount root > > > > Here's the critical snippet of code: > #if defined(BOOTP_NFSROOT) && defined(BOOTP) > bootpc_init(); /* use bootp to get nfs_diskless filled in */ > #elif defined(NFS_ROOT) > nfs_setup_diskless(); > #endif > > Just fyi, as you can see, unless you have BOOTP_NFSROOT and BOOTP options, > it does things the NFS_ROOT way and basically ignores BOOTP_NFSV3. > (At least thats the way it looks to me. I've been tricked by convoluted > code before:-) you are correct, I missed the NFS_ROOT which is defined in GENERIC, and yes, convoluted is an understatement :-) danny