From owner-freebsd-current@FreeBSD.ORG Thu Oct 30 16:57:11 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4202A101; Thu, 30 Oct 2014 16:57:11 +0000 (UTC) Received: from mail-pa0-x234.google.com (mail-pa0-x234.google.com [IPv6:2607:f8b0:400e:c03::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 09267374; Thu, 30 Oct 2014 16:57:11 +0000 (UTC) Received: by mail-pa0-f52.google.com with SMTP id fa1so5840459pad.11 for ; Thu, 30 Oct 2014 09:57:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=d5ggWnsVX7+IyMk2fL+vFkF4FHn2RfMaeQ5G3NfP0f0=; b=gtXDteMOaw/LMLKLnfTc30Vh9CX+TRZl4m7+YwITlWYe4VK2xKh0hP+skJmUtD6bbH QmsjIkUiGGSBD7NLeUebAo4YWIxPaNLmV6CrAryZtuu2eL9JvzqBaFEsx74ByJdk4Fl1 juJAbagaFLB4vewET8jtXQCXrdgpEgWaOYPneytv4u4a/a4FDnkLjD+g2SZQm5Kj9FoH 4IOEb59cVBCY7M8QxcwEHok4oYHowyZ+Mr7g6KZu3E7vPycqrO0QcrzDUftIC0KVuve5 qDQNVAj3JgWeTP3SBK5tSDGM4kh3rExFswjo7ED0WhjJOwz5zRzTtJwMcBZVM9dYckx3 vkAQ== X-Received: by 10.70.140.70 with SMTP id re6mr10267999pdb.149.1414688230448; Thu, 30 Oct 2014 09:57:10 -0700 (PDT) Received: from [192.168.20.5] (c-98-247-240-204.hsd1.wa.comcast.net. [98.247.240.204]) by mx.google.com with ESMTPSA id k9sm7639838pdj.41.2014.10.30.09.57.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 30 Oct 2014 09:57:09 -0700 (PDT) Content-Type: multipart/signed; boundary="Apple-Mail=_8EC6391F-6BA6-4FD0-9024-34BDF98B73D4"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Booting from symlinked kernels (was "HEADS UP: Standalone kernel debug files moving out of /boot/kernel/") From: Garrett Cooper In-Reply-To: Date: Thu, 30 Oct 2014 09:57:08 -0700 Message-Id: <7F25A179-8252-4A4B-BAFE-04A230F7255D@gmail.com> References: <54511A7E.1020307@multiplay.co.uk> <20141030023224.GA42236@troutmask.apl.washington.edu> To: Ed Maste X-Mailer: Apple Mail (2.1878.6) Cc: FreeBSD Current , Steven Hartland , Steve Kargl X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2014 16:57:11 -0000 --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 wrote: > On 29 October 2014 22:32, Steve Kargl = wrote: >> On Wed, Oct 29, 2014 at 03:15:50PM -0400, Ed Maste wrote: >>> On 29 October 2014 12:49, Steven Hartland = 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--