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:
Mike Smith 1999-11-01 23:55:38 +00:00
parent b676e48c98
commit b7017a8210
2 changed files with 12 additions and 0 deletions

View File

@ -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...

View File

@ -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...