If you don't build any modules, then you can not
kldload any kernel functionality should you need it. You will have to rebuild the kernel each time you realize you forgot something. So bad idea IMHO. If you want to slim down on modules (which also saves on
builkernel time), place this in
src.conf:
Code:
WITHOUT_MODULES= "acpi_asus acpi_dock acpi_fujitsu acpi_hp ....."
That way you specifically select the modules you are sure you do not need. A full module list can be seen by listing files in
/boot/kernel.
More effective option is to slim-down world, since modules do not take that much space anyway. In
/etc/src.conf, get rid of everything you do not need. Some examples:
Code:
WITHOUT_BLUETOOTH
WITHOUT_EXAMPLES
All documented in the man page, and many options available to slim-down unnecessary world components. There is one thing you need to pay attention to in this file;
clang vs
gcc42. Pick one, and disable the other since space, not code optimization is your concern - for example:
@Markland: There are some other KNOBS that are not documented / enabled in
/etc/srfc.conf. You need to set those separately. These can be set in a)
/etc/make.conf, b) in
environment:
# setenv NO_MAN yes
or c) in the command line with
-DNO_MAN. Available knobs:
Code:
-DNO_MAN -DNODOC -DNO_GAMES -DNO_INFO -DNO_JAIL -DNOPORTS -DNOSRC
Once world is built like this, you can then roll this into an
iso file to use elsewhere:
[CMD="/usr/src/release > #"]make iso[/CMD]
or
make release if you prefer.