Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 May 2009 12:03:00 -0400
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        Steve Bertrand <steve@ibctech.ca>
Cc:        "freebsd-questions@freebsd.org Questions -" <freebsd-questions@freebsd.org>
Subject:   Re: Do not copy kernel to kernel.old
Message-ID:  <44ab55w2ff.fsf@lowell-desk.lan>
In-Reply-To: <4A16BAAE.4030000@ibctech.ca> (Steve Bertrand's message of "Fri\, 22 May 2009 10\:46\:06 -0400")
References:  <4A16BAAE.4030000@ibctech.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
Steve Bertrand <steve@ibctech.ca> 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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44ab55w2ff.fsf>