Call bootpc_init before we try to mount an NFS root, if we're configured
to use BOOTP for NFS root discovery. The entire interface setup inside nfs_mountroot is evil, and should die.
This commit is contained in:
parent
b676e48c98
commit
b7017a8210
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52781
@ -37,6 +37,8 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#include "opt_bootp.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/sockio.h>
|
||||
#include <sys/proc.h>
|
||||
@ -399,6 +401,10 @@ nfs_mountroot(mp)
|
||||
u_long l;
|
||||
char buf[128];
|
||||
|
||||
#if defined(BOOTP_NFSROOT) && defined(BOOTP)
|
||||
bootpc_init(); /* use bootp to get nfs_diskless filled in */
|
||||
#endif
|
||||
|
||||
/*
|
||||
* XXX time must be non-zero when we init the interface or else
|
||||
* the arp code will wedge...
|
||||
|
@ -37,6 +37,8 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#include "opt_bootp.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/sockio.h>
|
||||
#include <sys/proc.h>
|
||||
@ -399,6 +401,10 @@ nfs_mountroot(mp)
|
||||
u_long l;
|
||||
char buf[128];
|
||||
|
||||
#if defined(BOOTP_NFSROOT) && defined(BOOTP)
|
||||
bootpc_init(); /* use bootp to get nfs_diskless filled in */
|
||||
#endif
|
||||
|
||||
/*
|
||||
* XXX time must be non-zero when we init the interface or else
|
||||
* the arp code will wedge...
|
||||
|
Loading…
Reference in New Issue
Block a user