[Bug 250828] kern.module_path does not include /boot/modules
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Nov 4 21:49:44 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250828
Ed Maste <emaste at freebsd.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |emaste at freebsd.org
--- Comment #1 from Ed Maste <emaste at freebsd.org> ---
default linker path in the kernel is (from sys/kern/kern_linker.c):
static char linker_hintfile[] = "linker.hints";
static char linker_path[MAXPATHLEN] = "/boot/kernel;/boot/modules";
SYSCTL_STRING(_kern, OID_AUTO, module_path, CTLFLAG_RWTUN, linker_path,
sizeof(linker_path), "module load search path");
TUNABLE_STR("module_path", linker_path, sizeof(linker_path));
static const char * const linker_ext_list[] = {
"",
".ko",
NULL
};
Typically the actual module path will be determined by the loader and passed as
module_path.
>From stand/defaults/loader.conf:
module_path="/boot/modules;/boot/dtb;/boot/dtb/overlays" # Set the module
search path
and logic in
stand/lua/config.lua
or
stand/forth/support.4th
On my -CURRENT laptop:
$ sysctl kern.module_path
kern.module_path: /boot/20201009;/boot/modules;/boot/dtb;/boot/dtb/overlays
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list