Bug 252834 - custom kernel: setting "makeoptions KERNEL=x" does not change name of installed kernel
Summary: custom kernel: setting "makeoptions KERNEL=x" does not change name of install...
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 12.2-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-19 16:34 UTC by Rob LA LAU
Modified: 2021-01-19 16:34 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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