diff options
author | brian <brian@FreeBSD.org> | 2002-04-26 09:52:54 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2002-04-26 09:52:54 +0000 |
commit | 895107253f709e379e3c599f26b22b83043f50f4 (patch) | |
tree | c8240ce65d20310b8bed1e6244fbaefedc75fcdd /sys/kern | |
parent | 844bfe0b65d4a34fb2692efb04bd67462d2b1d54 (diff) | |
download | FreeBSD-src-895107253f709e379e3c599f26b22b83043f50f4.zip FreeBSD-src-895107253f709e379e3c599f26b22b83043f50f4.tar.gz |
Test if rootvnode is NULL rather than if rootdev is NODEV when determining
if there's a filesystem present.
rootdev can be NODEV in the NFS-mounted root scenario.
Discussed with: Harti Brandt <brandt@fokus.gmd.de>, iedowse
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_linker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_linker.c b/sys/kern/kern_linker.c index 91e8539..e3b413f 100644 --- a/sys/kern/kern_linker.c +++ b/sys/kern/kern_linker.c @@ -1621,7 +1621,7 @@ linker_load_module(const char *kldname, const char *modname, return (EEXIST); if (kldname != NULL) pathname = linker_strdup(kldname); - else if (rootdev == NODEV) + else if (rootvnode == NULL) pathname = NULL; else /* |