From 5d59c4c1dfb136edaf00a29c6fcedcc2a22ed244 Mon Sep 17 00:00:00 2001 From: gber Date: Wed, 29 Jun 2011 15:17:29 +0000 Subject: Set proper root device name when legacy NFS client is compiled into kernel. Approved by: cognet (mentor) --- sys/nfs/bootp_subr.c | 4 ++++ 1 file changed, 4 insertions(+) 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 #include @@ -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) -- cgit v1.1