Bug 252834

Summary: custom kernel: setting "makeoptions KERNEL=x" does not change name of installed kernel
Product: Base System Reporter: Rob LA LAU <freebsd>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed Not Accepted    
Severity: Affects Some People    
Priority: ---    
Version: 12.2-RELEASE   
Hardware: Any   
OS: Any   

Description Rob LA LAU 2021-01-19 16:34:46 UTC
Hi,

The comments in /usr/src/sys/conf/NOTES suggest that the name for a new kernel can be modified by including "makeoptions KERNEL=x" in the configuration file.

#makeoptions    KERNEL=foo              #Build kernel "foo" and install "/foo"

This does not work.
I tried twice, setting the variable to '2021011901' and 'kernel-2021011902' respectively (and removing the hash sign at the beginning of the line, obviously), but the new kernel was still installed as /boot/kernel/kernel.

> grep -rs 20210119 /boot/
Binary file /boot/kernel/kernel matches

> strings /boot/kernel/kernel | grep 20210119
makeoptions	KERNEL=kernel-2021011902

> svn info /usr/src
Path: /usr/src
Working Copy Root Path: /usr/src
URL: https://svn.freebsd.org/base/releng/12.2
Relative URL: ^/releng/12.2
Repository Root: https://svn.freebsd.org/base
Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revision: 369052
Node Kind: directory
Schedule: normal
Last Changed Author: gordon
Last Changed Rev: 368463
Last Changed Date: 2020-12-08 20:10:40 +0100 (di, 08 dec. 2020)

Don't hesitate to contact me if you need more info.

Cheers,
  Rob
Comment 1 Rob LA LAU 2021-11-05 23:42:55 UTC
Almost a year, so nobody cares.
Closed.