From owner-freebsd-questions@FreeBSD.ORG Mon Jun 25 18:38:50 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8FCAB16A41F for ; Mon, 25 Jun 2007 18:38:50 +0000 (UTC) (envelope-from tundra@tundraware.com) Received: from eskimo.tundraware.com (eskimo.tundraware.com [66.92.130.161]) by mx1.freebsd.org (Postfix) with ESMTP id 482E913C44C for ; Mon, 25 Jun 2007 18:38:50 +0000 (UTC) (envelope-from tundra@tundraware.com) Received: from [127.0.0.1] (outbound.tundraware.com [192.168.0.1]) (authenticated bits=0) by eskimo.tundraware.com (8.14.1/8.14.1) with ESMTP id l5PIbaLE013554 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO) for ; Mon, 25 Jun 2007 13:37:52 -0500 (CDT) (envelope-from tundra@tundraware.com) Message-ID: <46800B6F.4010105@tundraware.com> Date: Mon, 25 Jun 2007 13:37:35 -0500 From: Tim Daneliuk Organization: TundraWare Inc. User-Agent: Thunderbird 1.5.0.9 (X11/20060911) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <467FEE86.5020601@tundraware.com> <467FF636.6060708@gahr.ch> In-Reply-To: <467FF636.6060708@gahr.ch> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-tundraware.com-MailScanner-Information: Please contact the ISP for more information X-tundraware.com-MailScanner: Found to be clean X-tundraware.com-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-4.399, required 1, autolearn=not spam, ALL_TRUSTED -1.80, BAYES_00 -2.60) X-tundraware.com-MailScanner-From: tundra@tundraware.com X-Spam-Status: No Subject: Re: Repopulating the GENERIC kernel X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: tundra@tundraware.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jun 2007 18:38:50 -0000 Pietro Cerutti wrote: > Tim Daneliuk wrote: >> I have a production 6.2 STABLE machine w/something like this in /etc/make.conf: >> >> KERNCONF=MYKERN SMP GENERIC >> >> When I do a 'make kernel', as I understand it, all three kernels get *build* but only >> MYKERN actually gets installed. >> >> So ... how do I get the latest version of GENERIC (that I just compiled per the above) >> "installed" into /boot *without* it actually being the active kernel. IOW, I want >> my kernel build to *install* MYKERN as the active kernel and refresh GENERIC just in >> case I need it to recover a failed boot... > > try with > > make buildkernel > make installkernel KERNCONF=GENERIC INSTKERNNAME=GENERIC > make installkernel KERNCONF=SMP INSTKERNNAME=SMP > make installkernel KERNCONF=MYKERN INSTKERNNAME=MYKERN > > then set the name of the kernel that you want to boot off in > /boot/loader.conf, as > > kernel=MYKERN > > I don't know if there's an automatized way to perform the same... Well ... I guess I could avoid the last step with: make installkernel KERNCONF=MYKERN INSTKERNNAME=kernel ... since I believe the bootloader defaults to looking for a kernel called, um, "kernel" :) > > Hope this helps, > Yes - it helps greatly. Thanks!