DragonFly BSD

handbook-kernelconfig-trouble

If Something Goes Wrong

There are five categories of trouble that can occur when building a custom kernel. They are:

If you find you cannot do this, you are probably running at a securelevel(8) greater than zero. Edit kern_securelevel in /etc/rc.conf and set it to -1, then reboot. You can change it back to its previous setting when you are happy with your new kernel.

And, if you want to lock your new kernel into place, or any file for that matter, so that it cannot be moved or tampered with:

% chflags schg /boot/kernel