Re: uname reports wrong kernel name

From: Tomoaki AOKI <junchoon_at_dec.sakura.ne.jp>
Date: Mon, 22 Sep 2025 11:12:21 UTC
On Mon, 22 Sep 2025 12:45:19 +0200
Michael Grimm <trashcan@ellael.org> wrote:

> Hi,
> 
> I switched from 14.3 to 15.0-STABLE recently, and I do compile world and kernel from source.
> 
> My kernel config is customized:
> 
> 	ident CUSTOM
> 	include GENERIC
> 	include "../../conf/std.nodebug"
> 	device gre
> 
> This kernel is built as all the years before, and I can see it:
> 
> 	root> ls -l /usr/obj/usr/src/arm64.aarch64/sys/
> 	drwxr-xr-x   3 root wheel 4192 Sep 22 08:42 CUSTOM
> 
> But uname reports the kernel to be GENERIC:
> 
> 	root> uname -i
> 	GENERIC
> 
> 	root> uname -a
> 	FreeBSD mer-waases.net 15.0-ALPHA3 FreeBSD 15.0-ALPHA3 #2 stable/15-n280239-78b179fe9280-dirty: Mon Sep 22 08:42:11 \
> 	CEST 2025     root@xxx:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64
> 
> 
> Where should I start to search, and, is anyone else observing the same?
> 
> Regards,
> Michael

Hi.

Simply switch the order of ident line and include line.

With your order, ident line is overridden by "ident GENERIC" line
in GENERIC.

HTH.

-- 
Tomoaki AOKI    <junchoon@dec.sakura.ne.jp>