Creating a Custom Kernel Configuration File

Here’s where you actually begin the process of creating a new kernel. Remember that you don’t want to modify the GENERIC file itself; it gets updated with the system sources every time you synchronize or upgrade. Therefore, to make sure your changes don’t get overwritten, make a copy of GENERIC to use as your custom kernel config. The name for the copy should be a single word in all caps, according to tradition. The custom kernel for this example is called CUSTOM:

# cd /usr/src/sys/i386/conf
# cp GENERIC CUSTOM

You can now modify the CUSTOM file all you like. The first thing you should do is go through it and change the identification of the kernel (the ident line) from GENERIC to CUSTOM (or whatever ...

Get FreeBSD6 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.