I am running a FreeBSD 10.1 system with a custom kernel. I use (try to use) freebsd-update(8) to keep it up to date.
Because freebsd-update(8) always kept reporting that kernel updates were available when I had kernel listed in Components in /etc/freebsd-update.conf I removed it there.
My question now is: how do I keep the (custom) kernel up to date? Is freebsd-update(8) updating my /usr/src so rebuilding my kernel after running freebsd-update(8) without explicitly also updating the sources would do the trick? It seems that
But my gut feeling is that this assumption is not correct (i.e. freebsd-update(8) is not updating /usr/src) so recompiling the kernel actually does not really do anything besides wasting electricity.
Then, if that is true, how do I update my kernel (sources)? By running svn(1)[1]? SVN seems a bit - hmm - big. rsync [2]? Some other trick?
I found a forum post "freebsd-update suggest to update kernel" [3] which tackles the exact same problem; but the only answer does not say if kernel should be removed from freebsd-update.conf(8) and also not what the "best" (say: preferred by most admins?) way is to update the sources. It does however suggest that just running freebsd-update(8) and then recompile the kernel is not enough.
[1] https://www.freebsd.org/doc/handbook/svn.html
[2] https://www.freebsd.org/doc/handbook/mirrors-rsync.html
[3] https://forums.freebsd.org/threads/54220/
Because freebsd-update(8) always kept reporting that kernel updates were available when I had kernel listed in Components in /etc/freebsd-update.conf I removed it there.
My question now is: how do I keep the (custom) kernel up to date? Is freebsd-update(8) updating my /usr/src so rebuilding my kernel after running freebsd-update(8) without explicitly also updating the sources would do the trick? It seems that
uname -a is indeed reporting the newest patch level when I do this.But my gut feeling is that this assumption is not correct (i.e. freebsd-update(8) is not updating /usr/src) so recompiling the kernel actually does not really do anything besides wasting electricity.
Then, if that is true, how do I update my kernel (sources)? By running svn(1)[1]? SVN seems a bit - hmm - big. rsync [2]? Some other trick?
I found a forum post "freebsd-update suggest to update kernel" [3] which tackles the exact same problem; but the only answer does not say if kernel should be removed from freebsd-update.conf(8) and also not what the "best" (say: preferred by most admins?) way is to update the sources. It does however suggest that just running freebsd-update(8) and then recompile the kernel is not enough.
[1] https://www.freebsd.org/doc/handbook/svn.html
[2] https://www.freebsd.org/doc/handbook/mirrors-rsync.html
[3] https://forums.freebsd.org/threads/54220/