From owner-freebsd-questions@FreeBSD.ORG Fri May 22 16:03:09 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2D1131065672 for ; Fri, 22 May 2009 16:03:09 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail3.sea5.speakeasy.net (mail3.sea5.speakeasy.net [69.17.117.5]) by mx1.freebsd.org (Postfix) with ESMTP id 049408FC1F for ; Fri, 22 May 2009 16:03:08 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 16983 invoked from network); 22 May 2009 16:03:08 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail3.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 22 May 2009 16:03:08 -0000 Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.6]) by be-well.ilk.org (Postfix) with ESMTP id EDBAB50825; Fri, 22 May 2009 12:03:01 -0400 (EDT) Received: by lowell-desk.lan (Postfix, from userid 1147) id 3DCF41CCC5; Fri, 22 May 2009 12:03:01 -0400 (EDT) To: Steve Bertrand References: <4A16BAAE.4030000@ibctech.ca> From: Lowell Gilbert Date: Fri, 22 May 2009 12:03:00 -0400 In-Reply-To: <4A16BAAE.4030000@ibctech.ca> (Steve Bertrand's message of "Fri\, 22 May 2009 10\:46\:06 -0400") Message-ID: <44ab55w2ff.fsf@lowell-desk.lan> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "freebsd-questions@freebsd.org Questions -" Subject: Re: Do not copy kernel to kernel.old X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 May 2009 16:03:09 -0000 Steve Bertrand writes: > Many of my routers boot/run from a USB thumb stick. To upgrade these > routers, I "dd" the device onto another one, pop the backup into a build > machine, and do the normal build*/install* with a DESTDIR parameter. > > If the upgraded device does not boot (due to kernel problems), I just > wipe it clean and start over. > > Having a kernel.old in this case is a waste of time and of space. Is > there any parameter I can tell the build process to ensure that the > kernel.old work does not get done? Did you look at the makefiles or build(7)? About 20 seconds of investigation led me to think that "reinstallkernel" was what you were looking for. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/