diff options
author | gber <gber@FreeBSD.org> | 2011-06-29 15:17:29 +0000 |
---|---|---|
committer | gber <gber@FreeBSD.org> | 2011-06-29 15:17:29 +0000 |
commit | 5d59c4c1dfb136edaf00a29c6fcedcc2a22ed244 (patch) | |
tree | 31433e3608add85bd349dee7f565af9de4774fb8 /sys/nfs | |
parent | 0a17043d52ecf221ee895a37da0fb4cf6fa8582f (diff) | |
download | FreeBSD-src-5d59c4c1dfb136edaf00a29c6fcedcc2a22ed244.zip FreeBSD-src-5d59c4c1dfb136edaf00a29c6fcedcc2a22ed244.tar.gz |
Set proper root device name when legacy NFS client is compiled into kernel.
Approved by: cognet (mentor)
Diffstat (limited to 'sys/nfs')
-rw-r--r-- | sys/nfs/bootp_subr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/nfs/bootp_subr.c b/sys/nfs/bootp_subr.c index ca90089..bd4a826 100644 --- a/sys/nfs/bootp_subr.c +++ b/sys/nfs/bootp_subr.c @@ -44,6 +44,7 @@ __FBSDID("$FreeBSD$"); #include "opt_bootp.h" +#include "opt_nfs.h" #include <sys/param.h> #include <sys/systm.h> @@ -1699,6 +1700,9 @@ bootpc_init(void) } rootdevnames[0] = "nfs:"; +#ifdef NFSCLIENT + rootdevnames[1] = "oldnfs:"; +#endif mountopts(&nd->root_args, NULL); for (ifctx = gctx->interfaces; ifctx != NULL; ifctx = ifctx->next) |