From peter@dataloss.nl  Fri Mar  8 04:56:38 2002
Return-Path: <peter@dataloss.nl>
Received: from useful.dataloss.nl (useful.dataloss.nl [62.250.7.47])
	by hub.freebsd.org (Postfix) with SMTP id 19D2037B400
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  8 Mar 2002 04:56:37 -0800 (PST)
Received: (qmail 30143 invoked by uid 1001); 8 Mar 2002 12:56:35 -0000
Message-Id: <20020308125635.30142.qmail@useful.dataloss.nl>
Date: 8 Mar 2002 12:56:35 -0000
From: Peter van Dijk <peter@dataloss.nl>
Reply-To: Peter van Dijk <peter@dataloss.nl>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: NFSROOT breaks without a gateway
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         35669
>Category:       kern
>Synopsis:       [nfs] NFSROOT breaks without a gateway
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    imp
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 08 05:00:02 PST 2002
>Closed-Date:    Thu Mar 13 22:13:19 MDT 2014
>Last-Modified:  Thu Mar 13 22:13:19 MDT 2014
>Originator:     Peter van Dijk
>Release:        FreeBSD 4.5-RELEASE-p1 i386
>Organization:
Business Internet Trends
>Environment:
System: FreeBSD breakfast.primexs.net 4.5-RELEASE-p1 FreeBSD 4.5-RELEASE-p1 #0: Mon Mar 4 14:40:41 CET 2002     root@cheapo.bit.nl:/usr/obj/usr/src/sys/HOSTING  i386

isc-dhcp3-3.0.1.r6

>Description:

When using NFSROOT (in combination with pxeboot, in this case), mounting
the root filesystem fails when dhcp has not provided a gateway address,
even if none is needed.

>How-To-Repeat:

A dhcp configuration like:

host egg.primexs.net
{
        hardware ethernet 00:02:B3:62:8A:84;
        fixed-address 192.168.162.173;
        option root-path "/usr/pxeboot/root";
} 

with no 'option routers' in any global part. The client then will, when
trying to mount the NFS root, say:

panic: nfs_mountroot: RTM_ADD: 51

>Fix:

Workaround: Provide a 'bogus' gateway entry (I just added
'option routers 192.168.162.1', which worked).
Possible fix: not try to add a route in the NFSROOT code if the gateway
is not set, or ignore any errors and try to mount anyway.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->cel 
Responsible-Changed-By: cel 
Responsible-Changed-When: Fri May 12 18:37:58 UTC 2006 
Responsible-Changed-Why:  
Will review behavior in recent FreeBSD kernels and figure out how to make 
NFSROOT behave reasonably, or document the brokeness. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35669 
Responsible-Changed-From-To: cel->freebsd-bugs 
Responsible-Changed-By: cel 
Responsible-Changed-When: Mon Mar 12 15:27:36 UTC 2007 
Responsible-Changed-Why:  
Back to the public pool. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35669 
Responsible-Changed-From-To: freebsd-bugs->imp 
Responsible-Changed-By: gnn 
Responsible-Changed-When: Sat Jul 28 20:23:02 UTC 2012 
Responsible-Changed-Why:  
I'm hoping you can just tell me this can be closed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35669 
State-Changed-From-To: open->closed 
State-Changed-By: imp 
State-Changed-When: Thu Mar 13 22:13:03 MDT 2014 
State-Changed-Why:  
Near as I can tell, this works now. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=35669 
>Unformatted:
