NetBSD Problem Report #41414
From mochid@netside.co.jp Tue May 12 13:20:36 2009
Return-Path: <mochid@netside.co.jp>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 3080D63C238
for <gnats-bugs@gnats.netbsd.org>; Tue, 12 May 2009 13:20:36 +0000 (UTC)
Message-Id: <200905121121.n4CBLqg19829@cedar.yorie.netside.co.jp>
Date: Tue, 12 May 2009 20:21:52 +0900 (JST)
From: mochid@netside.co.jp
Reply-To: mochid@netside.co.jp
To: gnats-bugs@gnats.netbsd.org
Subject: NetBSD 5.0 fails net-boot using BOOTPARAM
X-Send-Pr-Version: 3.95
>Number: 41414
>Category: kern
>Synopsis: NetBSD 5.0 fails net-boot using BOOTPARAM
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue May 12 13:25:00 +0000 2009
>Originator: MOCHIDA Shuji
>Release: NetBSD 5.0
>Organization:
personal
>Environment:
NetBSD 5.0 sparc
Architecture: sparc
Machine: sparc
>Description:
net-boot using BOOTPARAM fails on NetBSD 5.0 sparc.
>How-To-Repeat:
netboot NetBSD 5.0 with BOOTPARAM
>Fix:
Even if some parameters are missing after three methods
(static, DHCP, BOOTPARAMS), not reach to NFS_BOOT_ALLINFO,
net-boot should not stopped.
This caused by adding sys/nfs/nfs_bootparams.c *flags check.
268 if ((*flags & NFS_BOOT_ALLINFO) != NFS_BOOT_ALLINFO)
269 return error ? error : EADDRNOTAVAIL;
--- sys/nfs/nfs_boot.c.ORIG 2008-10-27 22:24:01.000000000 +0900
+++ sys/nfs/nfs_boot.c 2009-05-12 19:36:36.000000000 +0900
@@ -147,7 +147,7 @@
error = nfs_bootparam(nd, lwp, &flags);
}
#endif
- if (error)
+ if (error && error != EADDRNOTAVAIL)
return (error);
/*
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.