Solved Distributing a custom kernel

I've got a small fleet of VPSs that I want to build a network of IPsec tunnels between. Since IPsec isn't in GENERIC, this means building a custom kernel. Not a big deal, but I've been curious if there's a standard way to distribute pre-compiled non-GENERIC kernels to a bunch of FreeBSD boxes, rather than downloading source and compiling on each of them.

I've poked around the handbook and Google a bit, but haven't come up with anything definitive. Any pointers?
 
Copy the directory /boot/kernel/ from the computer that just compiled the kernel to the other boxes. Depending on the KERNCONF options, this can be done if they have the same processor. tar(1) zip or bzip2(1) it to help keep it's permissions intact.
 
Export /usr/src and /usr/obj from the build host using NFS and mount the directories on the clients. Install as usual after the build host has finished the builds. On the clients you should have KERNCONF set in /etc/make.conf to match the kernels that are built.
 
Back
Top