Freebsd – Best way to upgrade FreeBSD with non generic kernel (XENHVM)

freebsdkernel

Since manually upgrading from source (cvsup) is deprecated and the recommendation is to use freebsd-update:

What's the best way to upgrade (e.g. 9.1 to 9.2) while keeping a non-generic (XENHVM) kernel?

I'm presently using a mix between freebsd-update and manually installing from …/9.2-RELEASE/src.txz but I would like to know if anyone else as a better/faster/cleaner/easier way of doing it.

Best Answer

Use freebsd-update to upgrade the rest of the system and rebuild the kernel from sources as before. If the kernel has changed, freebsd-update will update the sources so you can then build your custom kernel as before.

Bear in mind that some updates will not make any kernel changes and will not require a kernel rebuild.