Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Nov 2018 09:29:30 +0000
From:      Steve O'Hara-Smith <steve@sohara.org>
To:        Aram =?UTF-8?B?SMSDdsSDcm5lYW51?= <aram.h@mgk.ro>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: freebsd-update(8) and custom kernels
Message-ID:  <20181107092930.3f48e1cee7caeb670fe38a58@sohara.org>
In-Reply-To: <CAEAzY3_LbPi2fUn28oviHM6fZBmmzZbnFaQhN9eVrfJOPmhHGA@mail.gmail.com>
References:  <CAEAzY3_BzOH25aoTpTWTREbhJD0V0o8RKCV6A4sVnXtCpRjE3g@mail.gmail.com> <20181106170818.GD88460@mordor.lan> <CAEAzY3_oF94bezhVte7Ym5Y0qfEypu7rabh4BGx6v%2BOFi6cR%2BA@mail.gmail.com> <20181106174215.43746c0a0f28d86dd4ef0e14@sohara.org> <CAEAzY3_xbb76vWYkFKXc3mBOdceBX3GdZ=SXEYyNSNGARvgu_A@mail.gmail.com> <20181106223828.4e65f87c884b43c40f0231e3@sohara.org> <CAEAzY3_LbPi2fUn28oviHM6fZBmmzZbnFaQhN9eVrfJOPmhHGA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 7 Nov 2018 00:12:29 +0100
Aram Hăvărneanu <aram.h@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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20181107092930.3f48e1cee7caeb670fe38a58>