Creating a Custom Kernel Configuration File
Here's where we actually begin the process of creating a new kernel. You won't actually want to modify the GENERIC file itself; it gets updated with the system sources every time you synchronize or upgrade. So, to make sure that your changes don't get overwritten, make a copy of it to use as your custom kernel config. The name for the copy should be a single word in all caps, according to tradition. Our example custom kernel will be called CUSTOM:
# 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 every mention of GENERIC to CUSTOM (or whatever name you choose). You also should remove redundant entries for cpu, and possibly ...
Get FreeBSD® 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.