freebsd-update(8) and custom kernels

Julien Cigar julien at perdition.city
Tue Nov 6 16:24:56 UTC 2018


On Tue, Nov 06, 2018 at 05:01:54PM +0100, Aram Hăvărneanu wrote:
> Hello,
> 
> The FreeBSD handbook claims that freebsd-update(8) will leave custom
> kernels alone, and that if using a custom kernel it will update
> /boot/GENERIC to the release kernel if it exists. It also hints
> that it uses this /boot/GENERIC for upgrades between releases,
> allowing you to install your custom kernel post-upgrade after you
> will have rebuilt it.
> 
> This is not what's happening at all, instead freebsd-update(8) is
> trashing custom kernels without warning. There have been several
> threads about this on the mailing list. The only conclusion I have
> been able to draw from them is that the handbook is out of date.
> Apparently the current, undocumented behavior dates back at least
> six years.
> 
> So, is it possible to track -RELEASE using freebsd-update(8) and
> still use custom kernels? Of course I can remove "kernel" from
> "Components" in freebsd-update.conf and then freebsd-update(8) won't
> overwrite my kernel, but I would imagine I won't be able to upgrade
> between releases that way, since freebsd-update(8) will not provide
> an intermediary newer n+1 GENERIC kernel to boot the new n+1 release.
> 
> What's the solution here? Is there one?

I usually use:
$> freebsd-update fetch
$> freebsd-update install
$> make kernel KERNCONF=MYKERNEL
$> reboot

> 
> Thanks,
> 
> -- 
> Aram Hăvărneanu
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"

-- 
Julien Cigar
Belgian Biodiversity Platform (http://www.biodiversity.be)
PGP fingerprint: EEF9 F697 4B68 D275 7B11  6A25 B2BB 3710 A204 23C0
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20181106/b3a7a276/attachment.sig>


More information about the freebsd-questions mailing list