Date: Wed, 7 Nov 2018 11:23:35 +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-eq%2BvYeVpcw=%2BWvHcf5MxVXNozkZqAqUrU%2BXOQUWC8jA@mail.gmail.com> In-Reply-To: <20181107092930.3f48e1cee7caeb670fe38a58@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> <CAEAzY3_LbPi2fUn28oviHM6fZBmmzZbnFaQhN9eVrfJOPmhHGA@mail.gmail.com> <20181107092930.3f48e1cee7caeb670fe38a58@sohara.org>
next in thread | previous in thread | raw e-mail | index | archive | help
I just checked, the new kernel sources are not installed by the first update. I tried this on a 10.4 system with a custom kernel: # uname -a FreeBSD ip-172-31-46-244 10.4-RELEASE-p13 FreeBSD 10.4-RELEASE-p13 #0: Wed Nov 7 09:12:40 UTC 2018 aram@ip-172-31-46-244:/usr/obj/usr/src/sys/FCTARGET amd64 # # freebsd-update -r 11.2-RELEASE upgrade # freebsd-update install Installing updates... Kernel updates have been installed. Please reboot and run "/usr/sbin/freebsd-update install" again to finish installing updates. At this point the new kernel sources are *NOT* installed. There is no point in recompiling the kernel here, as you will recompile the old (10.4) kernel. If you reboot now, you will get the new (11.2) GENERIC kernel, not the custom kernel. After reboot: # uname -a FreeBSD ip-172-31-46-244 11.2-RELEASE-p4 FreeBSD 11.2-RELEASE-p4 #0: Thu Sep 27 08:16:24 UTC 2018 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 We can now run freebsd-update install again, to finish the upgrade. After that is finished, we can now recompile and reinstall the custom kernel. $ cd /usr/src $ make buildkernel -j32 KERNCONF=3DFCTARGET $ sudo make installkernel KERNCONF=3DFCTARGET $ sudo reboot After reboot we'll have our custom 11.2 kernel. As you can see, we had to boot into GENERIC to do the update. The kernel sources were not updated by freebsd-update(8) in the first invocation, only by the second one, after the GENERIC kernel was installed and booted. --=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-eq%2BvYeVpcw=%2BWvHcf5MxVXNozkZqAqUrU%2BXOQUWC8jA>