Aug 12, 2010 The only way to have freebsd-update support your custom kernel without having to recompile on the client is to run your own freebsd-update server. I'm sure DutchDaemon, among others, coud have predicted this comment from me.
Active5 years, 7 months ago
I was simply configuring a custom kernel, I should not need to build a took chain to build a kernel when nothing has changed from the RELEASE, it should already be the correct toolchain. Let me guess. FreeBSD Custom Kernel - Multiple FIBs To run multiple jails on a single host and provide different routing tables (FIBs) to each jail, you have to compile a custom kernel. Update: Compiling a custom kernel is no longer needed with FreeBSD 12. By default, the FreeBSD operating system utilizes the GENERIC kernel; however, in this tutorial, we will recompile a FreeBSD kernel with a custom configuration known as: CUSTOM.
I am running
freebsd-update
from time to time on my FreeBSD 9.0 system. I have a custom kernel installed and running and, according to a tip from the FreeBSD documentation (Freebsd Update (section 25.2.2)), keep a copy of GENERIC
in /boot/GENERIC
Note: It is a good idea to always keep a copy of the
GENERIC
kernel in /boot/GENERIC
. It will be helpful in diagnosing a variety of problems, and in performing version upgrades using freebsd-update as described in Section 25.2.3.When there are updates I keep getting the following message from
freebsd-update
:The following files will be updated as part of updating to
9.0-RELEASE-p4
: /boot/kernel/kernel
And
freebsd-update
sure enough seems to overwrite my (custom) kernel with GENERIC
in the process of updating. This breaks remote access to the machine for me because things in my custom kernel are needed for networking...I believe that the problem is that FreeBSD or
freebsd-update
does not recognise my custom kernel as custom but thinks it's GENERIC
. Question is: why? And how can I change this?![Kernel Kernel](https://www.linode.com/docs/tools-reference/custom-kernels-distros/install-freebsd-on-linode/freebsd-timezone-small.png)
I found the following post explaining how to install the GENERIC kernel into /boot and I am wondering if this would help. Does the procedure explained there
![Freebsd Custom Kernel Freebsd Custom Kernel](/uploads/1/3/3/2/133282719/172144570.png)
'register' somehow that
GENERIC
is in /boot/GENERIC
instead of /boot/kernel/
?By the way: yes, Machine boots GENERIC kernel after freebsd-update install on serverfault is the same issue (not solved there, got carried away).
UPDATEOther people are experiencing the same issue: How to keep freebsd-update from trashing custom kernel?
UPDATE2According to the FreeBSD mailing list the hint in the documentation about keeping a copy of GENERIC around does not help/work (anymore). See freebsd-update patches custom /boot/kernel/kernel which it should not
Community♦
scherandscherand
1 Answer
A quote from the handbook:
Only the GENERIC kernel can be automatically updated by freebsd-update.
If you need a network driver that is not built in the GENERIC kernel, see if it is available as a module and load it automatically from
/boot/loader.conf
. Then you can stick with GENERIC.Freebsd Custom Kernel Mod
If that doesn't work, you'll probably have to do a build from source.
Roland SmithRoland Smith