| Summary: | kldload loads <file> from /modules even if <file> exists locally | ||
|---|---|---|---|
| Product: | Base System | Reporter: | nn <nn> |
| Component: | kern | Assignee: | dan <dan> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Unspecified | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
nn
1999-11-19 01:40:01 UTC
Responsible Changed From-To: freebsd-bugs->dan I'll take this if no one minds... nn@broadcom.com wrote: > >Number: 14988 > >Category: kern > >Synopsis: kldload loads <file> from /modules even if <file> exists loc [..] > >Description: > Very non-intuitively, "kldload file.ko" ignores the file "file.ko" > if it exists in the current directly and instead loads > file.ko from /modules if it exists there. This is actually as designed... # sysctl kern.module_path kern.module_path: /;/boot/;/modules/ If you want it to load from . you can set it to: ./;/;/boot/;/modules/ and that will work. It's done that way for the same reason we don't have "." in the beginning of $PATH. Cheers, -Peter State Changed From-To: open->closed This is actually a "designed feature". Please see sysctl variable kern.module_path Cheers to: peter |