From owner-freebsd-current@FreeBSD.ORG Thu Oct 30 02:34:33 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CBC3A3A3; Thu, 30 Oct 2014 02:34:33 +0000 (UTC) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "troutmask.apl.washington.edu", Issuer "troutmask.apl.washington.edu" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 8B248DAB; Thu, 30 Oct 2014 02:34:33 +0000 (UTC) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.9/8.14.9) with ESMTP id s9U2WP23042273 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 29 Oct 2014 19:32:25 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.9/8.14.9/Submit) id s9U2WOHF042272; Wed, 29 Oct 2014 19:32:24 -0700 (PDT) (envelope-from sgk) Date: Wed, 29 Oct 2014 19:32:24 -0700 From: Steve Kargl To: Ed Maste Subject: Re: HEADS UP: Standalone kernel debug files moving out of /boot/kernel/ Message-ID: <20141030023224.GA42236@troutmask.apl.washington.edu> References: <54511A7E.1020307@multiplay.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Cc: FreeBSD Current , Steven Hartland 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 02:34:33 -0000 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. > > > > 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? The above will copy both kernel and kernel.symbol to /boot/good. With your scheme one loses kernel.symbol (along with all other *.symbol files?). If one escapes to the boot prompt, she can do 'boot /boot/good/kernel', will the boot process automatically find a (nonexistant?) /usr/lib/boot/good/kernel.symbol. -- Steve