Just to confirm, if a patch seems to update the kernel and I use a custom kernel, does that mean it'll overwrite the active kernel with GENERIC and I have to recompile kernel after the update? Does it also update kernel's source in /usr/src?
freebsd-update(8) won't overwrite the active kernel. The active kerne, if it is named kernel, will be renamed in kernel.old:Just to confirm, if a patch seems to update the kernel and I use a custom kernel, does that mean it'll overwrite the active kernel with GENERIC
620 config_BackupKernelDir /boot/kernel.old
You can rename your renamed custom kernel into its original name and the updated kernel in something else (e.g. kernel.generic).I have to recompile kernel after the update?
# Components of the base system which should be kept updated.
Components src world kernel
Not just the kernel sources, but also world (userland) as well, as there are updates. As shown in the configuration file above, 'src' is among the components selected for updates.Does it also update kernel's source in /usr/src?
And this can't be loaded as a module? What driver?I can't use the GENERIC kernel because some of my devices don't have support and I need to add it in.
Did you report this? They're preparing for 15.1-RELEASE now, they might be able to squeeze it in before the release. Then you wouldn't have to rebuild anymore.I know, but I have to change usbdevs, which is part of kernel. (sys/dev/usb/usbdevs).
Which is exactly the order freebsd-update(8) would use. It creates the BE (of the current kernel+userland) then applies the patch (kernel, userland, or both). If things go south, you boot that BE and you'll be back to the state before the patch was applied. In other words, you are undoing the patch update (regardless if this patch was for the kernel, the userland, or both).git pull after a patch is released, create a bectl entry, and build/install kernel + world. This way you never mess anything up?
freebsd-update install, thus only one BE snapshot freebsd-update install, thus two BE snapshots freebsd-update install, thus three BE snapshots.Nope. Your running and installed kernel are both p3, your userland is p4. The order of the output is always the same regardless of the order of the options.freebsd-version -urk showed p3 p3 p4 (so installed was p4 but I was running on p3).
If several of the above options are specified, freebsd-version will print
the installed kernel version first, then the running kernel version, next
the userland version, and finally the userland version of the specified
jails, on separate lines. If no option is specified, it will print the
userland version only.
It's already installed, so there's nothing "new" to fetch or install.freebsd-update fetch showed p4 was available but freebsd-update install would say nothing to install.
The version string is baked in the kernel at compile time (from sys/conf/newvers.sh).- uname -a & freebsd-version now all show 14.4-p4.