Bug 23662

Summary: A patch to set kern.module_path based on info from the loader
Product: Base System Reporter: Daniel O'Connor <darius>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   

Description Daniel O'Connor 2000-12-19 23:50:01 UTC
The kern.module_path sysctl is not set based on the loader variable module_path,
this is a problem when booting to an alternate kernel name which has KLD's
which are not binary compatible (because they won't load or you'll get a panic
etc..)

Fix: 

http://www.dons.net.au/~darius/module_path.diff
How-To-Repeat: 
Perform 'boot kernel.old' in the loader and observe the kern.module_path sysctl.
Comment 1 Peter Wemm freebsd_committer freebsd_triage 2000-12-28 08:15:33 UTC
State Changed
From-To: open->closed

Suggested patch (mostly) applied. 
kern/kern_linker.c rev 1.54 
sys/kernel.h rev 1.76