From 446d071031f9197e49dc9abfebab64abd61655b3 Mon Sep 17 00:00:00 2001 From: YONETANI Tomokazu Date: Sat, 5 May 2007 16:13:53 +0000 Subject: [PATCH] (essential part of rev 1.54 in FreeBSD) Pull out the module path from the loader. When you boot a kernel installed in a different place (say /test and /test/modules) using module_path, you'd want your kern.module_path set to the same paths or else you can end up loading out-of-sync modules. --- sys/kern/kern_linker.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/kern_linker.c b/sys/kern/kern_linker.c index 930209373b..0fb146c574 100644 --- a/sys/kern/kern_linker.c +++ b/sys/kern/kern_linker.c @@ -24,7 +24,7 @@ * SUCH DAMAGE. * * $FreeBSD: src/sys/kern/kern_linker.c,v 1.41.2.3 2001/11/21 17:50:35 luigi Exp $ - * $DragonFly: src/sys/kern/kern_linker.c,v 1.34 2007/04/30 07:18:53 dillon Exp $ + * $DragonFly: src/sys/kern/kern_linker.c,v 1.35 2007/05/05 16:13:53 y0netan1 Exp $ */ #include "opt_ddb.h" @@ -1083,6 +1083,7 @@ static char linker_path[MAXPATHLEN] = "/;/boot/;/modules/"; SYSCTL_STRING(_kern, OID_AUTO, module_path, CTLFLAG_RW, linker_path, sizeof(linker_path), "module load search path"); +TUNABLE_STR("module_path", linker_path, sizeof(linker_path)); static char * linker_strdup(const char *str) -- 2.41.0