Skip site navigation (1)Skip section navigation (2)
Date:      8 Mar 2002 12:56:35 -0000
From:      Peter van Dijk <peter@dataloss.nl>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/35669: NFSROOT breaks without a gateway
Message-ID:  <20020308125635.30142.qmail@useful.dataloss.nl>

next in thread | raw e-mail | index | archive | help

>Number:         35669
>Category:       kern
>Synopsis:       NFSROOT breaks without a gateway
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 08 05:00:02 PST 2002
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020308125635.30142.qmail>