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>

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

--Apple-Mail=_8EC6391F-6BA6-4FD0-9024-34BDF98B73D4
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252

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.
>>>>=20
>>>> ATM when I want to copy a kernel for debugging its a one liner, =
splitting
>>>> debug symbols off to /usr/lib would prevent this.
>>>=20
>>> To retain the current behaviour you can set DEBUGDIR=3D (i.e., =
empty),
>>> as the debug file install path is ${DESTDIR}${DEBUGDIR}${KODIR}.
>>=20
>> No, you can't.
>>=20
>> su root
>> cp -pR /boot/kernel /boot/good
>>=20
>> Where does DEBUGDIR enter the picture?
>=20
> 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} =97 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=92t really =
worried about the feature being broken (I can hunt down the email =
thread=85 I just don=92t have it in my search results right now). =
Another worthwhile bug to explore/fix is: =
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D153996 .

Cheers!
-Garrett

--Apple-Mail=_8EC6391F-6BA6-4FD0-9024-34BDF98B73D4
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----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-----

--Apple-Mail=_8EC6391F-6BA6-4FD0-9024-34BDF98B73D4--



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