Author: gber
Date: Wed Jun 29 15:17:29 2011
New Revision: 223673
URL: http://svn.freebsd.org/changeset/base/223673

Log:
  Set proper root device name when legacy NFS client is compiled into kernel.
  
  Approved by:     cognet (mentor)

Modified:
  head/sys/nfs/bootp_subr.c

Modified: head/sys/nfs/bootp_subr.c
==============================================================================
--- head/sys/nfs/bootp_subr.c   Wed Jun 29 14:47:20 2011        (r223672)
+++ head/sys/nfs/bootp_subr.c   Wed Jun 29 15:17:29 2011        (r223673)
@@ -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)
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to