NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/41414: NetBSD 5.0 fails net-boot using BOOTPARAM



>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);
 
        /*



Home | Main Index | Thread Index | Old Index