misc/131598: freebsd-update doesn't interact well with custom
roy at gnomon.org.uk
Wed Feb 11 14:00:15 PST 2009
>Synopsis: freebsd-update doesn't interact well with custom kernels
>Arrival-Date: Wed Feb 11 22:00:13 UTC 2009
>Originator: Roy Badami
freebsd-update doesn't interact well with custom kernels.
When you do
freebsd-update -r <release> upgrade
running a custom kernel, you get told you must rebuild your kernel before proceeding with freebsd-update install.
Unfortunately freebsd-update hasn't updated the kernel source at this point (and won't until it updates userland AFAICT).
If you ignore the message (which is the only thing you can really do, since neither the message nor the handbook explain *how* you're supposed to rebuild the kernel at this stage), and you just cross your fingers and run
anyway, then the system claims to have updated the kernel - however it doesn't appear to have changed the kernel the system boots into (has it updated anything?).
If you run "freebsd-update install" a second time, it updates the userland as expected. The /usr/src/sys tree is now up-to-date and you can *now* rebuild your kernel.
This seems to be what other people do in this situation - updating userland before the kernel - but AIUI this isn't a supported way of moving between releases (although it's worked OK for me for 7.0-RELEASE -> 7.1-RC1 - 7.1-RELEASE and will probably work most of the time for minor releases)
More information about the freebsd-bugs