From owner-freebsd-bugs Fri Mar 8 5: 0:13 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id A918D37B417 for ; Fri, 8 Mar 2002 05:00:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g28D02G58872; Fri, 8 Mar 2002 05:00:02 -0800 (PST) (envelope-from gnats) Received: from useful.dataloss.nl (useful.dataloss.nl [62.250.7.47]) by hub.freebsd.org (Postfix) with SMTP id 19D2037B400 for ; 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 Reply-To: Peter van Dijk To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: kern/35669: NFSROOT breaks without a gateway Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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