freebsd-update(8) and custom kernels

Steve O'Hara-Smith steve at sohara.org
Wed Nov 7 09:29:48 UTC 2018


On Wed, 7 Nov 2018 00:12:29 +0100
Aram Hăvărneanu <aram.h at mgk.ro> wrote:

> > Building the kernel doesn't need the new binaries, otherwise a
> > source upgrade would be impossible.
> 
> I was under the impression that building across releases was not
> recommended and/or fragile. From /usr/src/UPDATING:

	Only across some boundaries.

> This is how Julian said it works for him with the custom kernel,
> except I replaced fetch with upgrade:

	This is now almost exactly what I do for upgrades on the box with a
custom kernel (the only difference is that I have the KERNCONF enshrined
in make.conf and so don't specify it).

>     1) freebsd-update -r XX.Y-RELEASE upgrade
>     2) freebsd-update install
>     3) make kernel KERNCONF=MYKERNEL
>     4) reboot
>     5) freebsd-update install
> 
> In my understanding in step #3 you don't have the new sources yet,
> so how do you compile the new kernel? Or do you have them?

	I never checked, I can only assume that they must be there. I'll try
and remember to look next time I do one. It does make sense to defer as
little as possible to the post-reboot install if only for this reason.

-- 
Steve O'Hara-Smith                          |   Directable Mirror Arrays
C:\>WIN                                     | A better way to focus the sun
The computer obeys and wins.                |    licences available see
You lose and Bill collects.                 |    http://www.sohara.org/


More information about the freebsd-questions mailing list