Building the New Kernel

Afteryou have finished editing your custom kernel configuration file and have saved it, you are ready to build the new kernel. Change back to the /usr/src directory and use the following command:

make buildkernel KERNCONF=MYKERNEL
					

MYKERNEL should, of course, be replaced with the actual name of the custom kernel configuration file that you used.

After you have entered the command, FreeBSD will first check the kernel configuration file to make sure that it is valid. If you have any illegal options or formatting errors in the file, FreeBSD will let you know about them and then the process will stop so that you can go back and fix the problems. After you have fixed any problems, simply run the make buildkernel KERNCONF= ...

Get Sams Teach Yourself FreeBSD® in 24 Hours 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.