]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r345550:
authorOleksandr Tymoshenko <gonzo@FreeBSD.org>
Wed, 15 May 2019 18:56:42 +0000 (18:56 +0000)
committerOleksandr Tymoshenko <gonzo@FreeBSD.org>
Wed, 15 May 2019 18:56:42 +0000 (18:56 +0000)
commit878e0334a83debd49bb5da1fe36911351326e986
tree4a8b128f0773d641b3168f2da81d9db1b3a451a9
parent66fdffa429986d1abd3f3c1b07ab6b5e5f94bef9
MFC r345550:

Change default value of kern.bootfile to reflect reality

In most cases kernel.bootfile is populated from the information
provided by loader(8). There are certain scenarios when loader
is not available, for instance when kernel is loaded by u-boot
or some other BootROM directly. In this case the default value
"/kernel" points to invalid location and breaks some functinality,
like using installkernel on self-hosted system or dtrace's CTF
lookup. This can be fixed by setting the value manually but the
default that reflects correct location is better than default that
points to invalid one.

Current default was set around FreeBSD 1, when "/kernel" was the
actual path. Transition to /boot/kernel/kernel happened circa FreeBSD 3.

PR: 221550
Reviewed by: ian, imp
Differential Revision: https://reviews.freebsd.org/D18902
sys/kern/kern_mib.c