Solved V12.1 Custom kernel not recognized after successful build and install

After copying and customizing the GENERIC kernel, I run:

Code:
cd /usr/src && nohup make buildkernel KERNCONF=GWKERNEL
make installkernel KERNCONF=GWKERNEL
shutdown -r now
After the reboot I run:
Code:
sysctl kern.conftxt | grep ident
and still get GENERIC kernel.

During build and install there are no error messages and I can't find any reference to the custom kernel in any log files.

I have performed this on other installs up to v11 and this is the first time it has failed.

Thanks for any input.
 
After copying and customizing the GENERIC kernel, I run:

Code:
cd /usr/src && nohup make buildkernel KERNCONF=GWKERNEL
make installkernel KERNCONF=GWKERNEL
shutdown -r now
After the reboot I run:
Code:
sysctl kern.conftxt | grep ident
and still get GENERIC kernel.

During build and install there are no error messages and I can't find any reference to the custom kernel in any log files.
What does the ident line in your GWKERNEL file say? Did you forgot to change it from „ident GENERIC“ to „ident GWKERNEL“?
Also, check the timestamp of the /boot/kernel/kernel file. Is it about the time when you installed the new kernel? If not, then the new kernel was not installed correctly.
Finally, check sysctl kern.bootfile. Does it say /boot/kernel/kernel? If it doesn’t, check your /boot/loader.conf for settings related to selection of the kernel file for booting.
 
Back
Top