Date: Wed, 7 Nov 2018 00:12:29 +0100 From: =?UTF-8?B?QXJhbSBIxIN2xINybmVhbnU=?= <aram.h@mgk.ro> To: "Steve O'Hara-Smith" <steve@sohara.org> Cc: freebsd-questions@freebsd.org Subject: Re: freebsd-update(8) and custom kernels Message-ID: <CAEAzY3_LbPi2fUn28oviHM6fZBmmzZbnFaQhN9eVrfJOPmhHGA@mail.gmail.com> In-Reply-To: <20181106223828.4e65f87c884b43c40f0231e3@sohara.org> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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: NOTE: FreeBSD has switched from gcc to clang. If you have trouble bootstrapping from older versions of FreeBSD, try WITHOUT_CLANG and WITH_GCC to bootstrap to the tip of head, and then rebuild without this option. The bootstrap process from older version of current across the gcc/clang cutover is a bit fragile. > The first install must install sources as well as the GENERIC kernel. Does it do that? According to the documentation, it only installs the new kernel. Other components (which I read as also the src component) are installed only by the second invocation, after you have booted the new kernel. Is this another case of the documentation being outdated? > No, I never boot into GENERIC, the procedure is exactly as Julien > described apart from the extra make install after the reboot. What extra make install? To recapitulate: This is how it works with GENERIC kernel: freebsd-update -r XX.Y-RELEASE upgrade freebsd-update install reboot freebsd-update install This is how Julian said it works for him with the custom kernel, except I replaced fetch with upgrade: 1) freebsd-update -r XX.Y-RELEASE upgrade 2) freebsd-update install 3) make kernel KERNCONF=3DMYKERNEL 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? Thanks, --=20 Aram H=C4=83v=C4=83rneanu
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAEAzY3_LbPi2fUn28oviHM6fZBmmzZbnFaQhN9eVrfJOPmhHGA>