Set proper root device name when legacy NFS client is compiled into kernel.
Approved by: cognet (mentor)
This commit is contained in:
parent
0a17043d52
commit
5d59c4c1df
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user