From root@aker.isnic.is  Thu Nov  4 15:06:30 2004
Return-Path: <root@aker.isnic.is>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 31F9916A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  4 Nov 2004 15:06:30 +0000 (GMT)
Received: from aker.isnic.is (aker.isnic.is [193.4.58.91])
	by mx1.FreeBSD.org (Postfix) with ESMTP id EA74E43D1D
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  4 Nov 2004 15:06:29 +0000 (GMT)
	(envelope-from root@aker.isnic.is)
Received: by aker.isnic.is (Postfix, from userid 0)
	id 9B1678A1C7; Thu,  4 Nov 2004 15:06:28 +0000 (GMT)
Message-Id: <20041104150628.9B1678A1C7@aker.isnic.is>
Date: Thu,  4 Nov 2004 15:06:28 +0000 (GMT)
From: Olafur Osvaldsson <oli@isnic.is>
Reply-To: Olafur Osvaldsson <oli@isnic.is>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: default loader.conf sets wrong module_path
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         73535
>Category:       conf
>Synopsis:       default loader.conf sets wrong module_path
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    ru
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 04 15:10:27 GMT 2004
>Closed-Date:    Thu Nov 04 15:24:38 GMT 2004
>Last-Modified:  Thu Nov 04 15:24:38 GMT 2004
>Originator:     Olafur Osvaldsson
>Release:        FreeBSD 5.3-RC1 i386
>Organization:
ISNIC
>Environment:
System: FreeBSD aker.isnic.is 5.3-RC1 FreeBSD 5.3-RC1 #0: Sat Oct 30 14:46:17 GMT 2004 oli@aker.isnic.is:/usr/obj/usr/src/sys/ISNIC i386


	
>Description:
kldload tries to load all modules by default from /boot/modules even
though kldload(8) states that /boot/kernel is the directory containing
the modules, and in sys/boot/common/module.c the default is set to
"/boot/kernel;/boot/modules" wich is almost in sync with kldconfig(8)
man page that states /boot/kernel, /boot/modules, /modules to be the
default module search path used by the kernel.
	
>How-To-Repeat:
	
kldload ucom (or any working module on your system)
>Fix:
You can either apply the attached patch or just comment out module_path

	

--- loader.conf.diff begins here ---
--- sys/boot/forth/loader.conf.orig	Thu Nov  4 14:53:44 2004
+++ sys/boot/forth/loader.conf	Thu Nov  4 14:54:09 2004
@@ -49,7 +49,7 @@
 #beastie_disable="NO"		# Turn the beastie boot menu on and off
 #console="vidconsole"		# Set the current console
 #currdev="disk1s1a"		# Set the current device
-module_path="/boot/modules"	# Set the module search path
+module_path="/boot/kernel;/boot/modules"	# Set the module search path
 #prompt="\\${interpret}"	# Set the command prompt
 #root_disk_unit="0"		# Force the root disk unit number
 #rootdev="disk1s1a"		# Set the root filesystem
--- loader.conf.diff ends here ---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Thu Nov 4 15:24:10 GMT 2004 
State-Changed-Why:  
Please see the 20040806 entry in src/UPDATING. 


Responsible-Changed-From-To: freebsd-bugs->ru 
Responsible-Changed-By: ru 
Responsible-Changed-When: Thu Nov 4 15:24:10 GMT 2004 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=73535 
>Unformatted:
