Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Oct 2014 09:57:08 -0700
From:      Garrett Cooper <yaneurabeya@gmail.com>
To:        Ed Maste <emaste@freebsd.org>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>, Steven Hartland <killing@multiplay.co.uk>, Steve Kargl <sgk@troutmask.apl.washington.edu>
Subject:   Booting from symlinked kernels (was "HEADS UP: Standalone kernel debug files moving out of /boot/kernel/")
Message-ID:  <7F25A179-8252-4A4B-BAFE-04A230F7255D@gmail.com>
In-Reply-To: <CAPyFy2AHyau5RhhZ628tbRQWa_smAYntHUrP0Ftd1EW8buZGXg@mail.gmail.com>
References:  <CAPyFy2APVUxpAztmWY-ux7gUZ7B8Qk65CLHV_fVYmxsazKgCPg@mail.gmail.com> <54511A7E.1020307@multiplay.co.uk> <CAPyFy2Bw9JH4w0iZ5hj2R1Ga9T4BZn_Z-8UBJ-jT6tmO%2Bi8VeA@mail.gmail.com> <20141030023224.GA42236@troutmask.apl.washington.edu> <CAPyFy2AHyau5RhhZ628tbRQWa_smAYntHUrP0Ftd1EW8buZGXg@mail.gmail.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Oct 30, 2014, at 6:07, Ed Maste <emaste@freebsd.org> wrote:

> On 29 October 2014 22:32, Steve Kargl <sgk@troutmask.apl.washington.edu> wrote:
>> On Wed, Oct 29, 2014 at 03:15:50PM -0400, Ed Maste wrote:
>>> On 29 October 2014 12:49, Steven Hartland <killing@multiplay.co.uk> 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: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=153996 .

Cheers!
-Garrett

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQEcBAEBCgAGBQJUUm3kAAoJEMZr5QU6S73et9EIAIhvwIz4g6LElg65ENJKaB+1
VvmCytWy3nV2COmRlorLUjYVC2UM8u4+yfKPfd+65RS13RPcfwFauCknfW6Pm1PH
GM6IQnOp0sjlcJWxQCZ1tcATYHrqn0ZzyfWsL9D+UxdX/Cpfple9RlDBEnXR9pEb
l2dsoBHCsELt48qSMrchMwAHRGAx19Zvlpem1CF72NJR8PYlSuxG1rhX8tRA+wrZ
Zvg3wghkNpUV9NII7SzpPPnLIW9l+3eeS0TS4XVfHQT1PxYCj2qyl8mhfS5uFEr7
arR2U4xofEde4js8N3FCrfNrJznCuZO0JhYcWNoAwVuZqH90u1w5yoCJzv8dOu4=
=OUEu
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7F25A179-8252-4A4B-BAFE-04A230F7255D>