Proper way to compile custom kernel

What is the best way to compile the customized kernel after doing freebsd-update?

My method is:
Code:
# freebsd-update fetch
# freebsd-update install
# reboot
# freebsd-update install
# /usr/sbin/config -g CUSTOM
# cd /usr/src
# make buildkernel KERNCONF=CUSTOM
# make installkernel KERNCONF=CUSTOM
# reboot
 
You should get used to using shutdown -r now instead of reboot its a lot safer. The mergemaster just looks for changes in your config files. It usually isn't needed unless jumping major versions. Your commands look right, yet I have never used the /usr/sbin/config command before, I will have to look into that one.
 
TheDreamer said:
I thought mergemaster was only for remaking the world, and not needed when just making a custom kernel.

It's part of the post upgrade activities which the op was asking about. I highly doubt freebsd-update automates that nor would I expect it to do it well.
 
chatwizrd said:
You should get used to using shutdown -r now instead of reboot its a lot safer. The mergemaster just looks for changes in your config files. It usually isn't needed unless jumping major versions. Your commands look right, yet I have never used the /usr/sbin/config command before, I will have to look into that one.


mergemaster(8) is absolutely needed if you're following a -STABLE branch, don't skip it if you are following one.
 
Something like
# make installkernel KERNCONF=CUSTOM KODIR=/boot/custom
# nextboot -k custom

can be useful, just in case.
 
Back
Top