Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Nov 2022 20:14:50 -0800
From:      Mark Millard <marklmi@yahoo.com>
To:        freebsd-current <freebsd-current@freebsd.org>
Subject:   Odd sysctl -d kern.bootfile result
Message-ID:  <B129E797-6041-48A5-B2A7-E7CB1C0E9989@yahoo.com>
References:  <B129E797-6041-48A5-B2A7-E7CB1C0E9989.ref@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
The context:

# ls -Tldt /boot/kern*/kernel
-r-xr-xr-x  1 root  wheel  40003240 Nov  6 16:32:05 2022 =
/boot/kernel/kernel
-r-xr-xr-x  1 root  wheel  39990232 Jul  6 11:21:16 2022 =
/boot/kernel.old/kernel
-r-xr-xr-x  1 root  wheel  31401824 Aug 19 03:16:29 2021 =
/boot/kernel.dbg/kernel

# uname -apKU # Note: output line split for readability
FreeBSD amd64_ZFS 14.0-CURRENT FreeBSD 14.0-CURRENT #55
main-n259064-f83db6441a2f-dirty: Sun Nov  6 16:31:55 PST 2022
=
root@amd64_ZFS:/usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.a=
md64/sys/GENERIC-NODBG
amd64 amd64 1400073 1400073


But . . .

# sysctl -d kern.bootfile
kern.bootfile: Name of kernel file booted

# sysctl -W kern.bootfile
kern.bootfile: /boot/kernel.old/kernel

Looks wrong to me. (I've never explicitly assigned to kern.bootfile .)

=3D=3D=3D
Mark Millard
marklmi at yahoo.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B129E797-6041-48A5-B2A7-E7CB1C0E9989>