Change for rc.lkm
An lkm is a loadable kernel module. These usually reside in /usr/lkm. For exmaple, the lkm pf.o must be loaded to use packet filter with the GENERIC kernel (without recompiling).
Generally, lkm's are loaded with modload(8). If you want modules automatically loaded at boot-time, they should be listed in /etc/lkm.conf. In lkm.conf(5) you specify for each module various parameters, such as modload options -d and -v, any postinstall script, and when in the boot process it should load.
Finally, the boot-time script /etc/rc.lkm checks lkm.conf and loads the modules requested there. Now to the point of all this . modload has an important flag -A kernel, which is used to resolve module references. The default kernel is "/netbsd", but if you're running a different kernel image and don't use the -A flag this could lead to a crash.
The problem is, I don't see a way to pass the "-A kernel" into the existing structure described above. In fact, ISTM it ought to be built-in by changing rc.lkm in a small way: replace
modload $flags $path
modload -A /$(/sbin/sysctl -n machdep.booted_kernel) $flags $path
Does this seem ok, or did I miss something?
|Thread||Thread Starter||Forum||Replies||Last Post|
|Username Change||ninjatux||Off-Topic||3||24th March 2009 06:45 PM|
|Change CRT to LCD||mfaridi||FreeBSD General||19||9th September 2008 01:51 PM|
|change ttl value||ecnalbya||OpenBSD Security||18||23rd August 2008 01:46 PM|
|rpc.nfsd threads, how do i change them?||NathanL||FreeBSD General||2||11th July 2008 12:28 PM|
|Change the Size of a Slice||kienjakenobi||FreeBSD General||9||27th June 2008 04:01 PM|