Booting from symlinked kernels (was "HEADS UP: Standalone kernel debug files moving out of /boot/kernel/")

Garrett Cooper yaneurabeya at
Thu Oct 30 16:57:11 UTC 2014

On Oct 30, 2014, at 6:07, Ed Maste <emaste at> wrote:

> On 29 October 2014 22:32, Steve Kargl <sgk at> wrote:
>> On Wed, Oct 29, 2014 at 03:15:50PM -0400, Ed Maste wrote:
>>> On 29 October 2014 12:49, Steven Hartland <killing at> wrote:
>>>> Hmm not sure I like this idea as it would make it more difficult to make a
>>>> copy / backup a kernel.
>>>> ATM when I want to copy a kernel for debugging its a one liner, splitting
>>>> debug symbols off to /usr/lib would prevent this.
>>> To retain the current behaviour you can set DEBUGDIR= (i.e., empty),
>>> as the debug file install path is ${DESTDIR}${DEBUGDIR}${KODIR}.
>> No, you can't.
>> su root
>> cp -pR /boot/kernel /boot/good
>> Where does DEBUGDIR enter the picture?
> In your kernel build configuration (src.conf or similar ways).

If you use the kernel build infrastructure properly, the debug info should be installed to ${DEBUGDIR}/boot/${INSTKERNNAME} — not ${DEBUGDIR}/boot/kernel (the latter is broken for folks like my that have multiple kernel configs in their src.conf).

As far as the symlink trick for /boot/kernel is concerned, that only works on UFS. I used to use it on ZFS, it broke one day, I sent out an email and got some replies back stating that they weren’t really worried about the feature being broken (I can hunt down the email thread… I just don’t have it in my search results right now). Another worthwhile bug to explore/fix is: .

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <>

More information about the freebsd-current mailing list