Date: Wed, 04 Nov 2020 21:49:44 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 250828] kern.module_path does not include /boot/modules Message-ID: <bug-250828-227-2hDJ6EnIuc@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-250828-227@https.bugs.freebsd.org/bugzilla/> References: <bug-250828-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250828 Ed Maste <emaste@freebsd.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |emaste@freebsd.org --- Comment #1 from Ed Maste <emaste@freebsd.org> --- default linker path in the kernel is (from sys/kern/kern_linker.c): static char linker_hintfile[] =3D "linker.hints"; static char linker_path[MAXPATHLEN] =3D "/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[] =3D { "", ".ko", NULL }; Typically the actual module path will be determined by the loader and passe= d as module_path. >From stand/defaults/loader.conf: module_path=3D"/boot/modules;/boot/dtb;/boot/dtb/overlays" # Set the mod= ule 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 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-250828-227-2hDJ6EnIuc>