compressed kernel modules
M. Warner Losh
imp at bsdimp.com
Sun Sep 28 07:22:37 PDT 2003
In message: <10569.12.238.113.137.1064709820.squirrel at mail.yazzy.org>
"masta" <masta at wifibsd.org> writes:
: Does the -CURRENT kldload(8), and/or loader(8), understand how to
: decompress gzip/bzip kernel modules? I'm assuming it is possible, but I
: haven't seen that done in the wild, or documented.
Not really. The boot loader loader can. Without help, kldload can't.
However, I have a small script that does a simple:
#!/bin/sh
cp /modules/$1.ko.gz /tmp
gunzip /tmp/$1.ko.gz
kldload /tmp/$1.ko
rm /tmp/$1.ko
Warner
More information about the freebsd-hackers
mailing list