|
NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
||||
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 Code:
modload $flags $path Code:
modload -A /$(/sbin/sysctl -n machdep.booted_kernel) $flags $path Does this seem ok, or did I miss something? |
|
||||
It seems the '-A' option (and other) has been removed from >5.0. Check the man page for modload(8) in current. I believe this came as a result of a new modules framework, see the following:
http://mail-index.netbsd.org/tech-ke...msg000104.html
__________________
The best way to learn UNIX is to play with it, and the harder you play, the more you learn. If you play hard enough, you'll break something for sure, and having to fix a badly broken system is arguably the fastest way of all to learn. -Michael Lucas, AbsoluteBSD |
|
||||
Quote:
|
|
|
Similar Threads | ||||
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 12:51 PM |
change ttl value | ecnalbya | OpenBSD Security | 18 | 23rd August 2008 12:46 PM |
rpc.nfsd threads, how do i change them? | NathanL | FreeBSD General | 2 | 11th July 2008 11:28 AM |
Change the Size of a Slice | kienjakenobi | FreeBSD General | 9 | 27th June 2008 03:01 PM |