Set proper root device name when legacy NFS client is compiled into kernel.

Approved by:     cognet (mentor)
This commit is contained in:
Grzegorz Bernacki 2011-06-29 15:17:29 +00:00
parent 24f4fe9a01
commit acd73f5041

View File

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