summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/nfs/nfs_vfsops.c6
-rw-r--r--sys/nfsclient/nfs_vfsops.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/sys/nfs/nfs_vfsops.c b/sys/nfs/nfs_vfsops.c
index d63f38d..dc9e053 100644
--- a/sys/nfs/nfs_vfsops.c
+++ b/sys/nfs/nfs_vfsops.c
@@ -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...
diff --git a/sys/nfsclient/nfs_vfsops.c b/sys/nfsclient/nfs_vfsops.c
index d63f38d..dc9e053 100644
--- a/sys/nfsclient/nfs_vfsops.c
+++ b/sys/nfsclient/nfs_vfsops.c
@@ -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...
OpenPOWER on IntegriCloud