From owner-freebsd-questions@FreeBSD.ORG Mon Jun 25 20:57:47 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 A52F816A46B for ; Mon, 25 Jun 2007 20:57:47 +0000 (UTC) (envelope-from gahr@gahr.ch) Received: from cpanel03.rubas-s03.net (cpanel03.rubas-s03.net [195.182.222.73]) by mx1.freebsd.org (Postfix) with ESMTP id 37CA513C465 for ; Mon, 25 Jun 2007 20:57:46 +0000 (UTC) (envelope-from gahr@gahr.ch) Received: from 80-218-187-205.dclient.hispeed.ch ([80.218.187.205] helo=gahrtop.localhost) by cpanel03.rubas-s03.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1I2vd4-0000lh-0V for freebsd-questions@freebsd.org; Mon, 25 Jun 2007 22:57:46 +0200 Message-ID: <46802C41.1080308@gahr.ch> Date: Mon, 25 Jun 2007 22:57:37 +0200 From: Pietro Cerutti User-Agent: Thunderbird 2.0.0.4 (X11/20070618) MIME-Version: 1.0 To: freebsd-questions@freebsd.org X-Enigmail-Version: 0.95.0 OpenPGP: id=9571F78E; url=http://www.gahr.ch/pgp Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig8E3053F16B3ED674BE0D1FB1" X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel03.rubas-s03.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - gahr.ch X-Source: X-Source-Args: X-Source-Dir: Subject: Re: Repopulating the GENERIC kernel 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: Mon, 25 Jun 2007 20:57:47 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig8E3053F16B3ED674BE0D1FB1 Content-Type: multipart/mixed; boundary="------------020407000204030409080000" This is a multi-part message in MIME format. --------------020407000204030409080000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Tim Daneliuk wrote: > Pietro Cerutti wrote: >> Tim Daneliuk wrote: >>> I have a production 6.2 STABLE machine w/something like this in /etc/= make.conf: >>> >>> KERNCONF=3DMYKERN 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 compil= ed 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=3DGENERIC INSTKERNNAME=3DGENERIC >> make installkernel KERNCONF=3DSMP INSTKERNNAME=3DSMP >> make installkernel KERNCONF=3DMYKERN INSTKERNNAME=3DMYKERN >> >> then set the name of the kernel that you want to boot off in >> /boot/loader.conf, as >> >> kernel=3DMYKERN >> >> I don't know if there's an automatized way to perform the same... >=20 > Well ... I guess I could avoid the last step with: >=20 > make installkernel KERNCONF=3DMYKERN INSTKERNNAME=3Dkernel >=20 > ... since I believe the bootloader defaults to looking for a kernel cal= led, um, "kernel" :) Not only, you can avoid INSTKERNNAME=3Dkernel if what you want is a kerne= l called "kernel". the kernel defaults to "kernel" as for in /boot/defaults/loader.conf >=20 >> Hope this helps, >> >=20 > Yes - it helps greatly. Thanks! Regards, --=20 Pietro Cerutti PGP Public Key: http://gahr.ch/pgp --------------020407000204030409080000 Content-Type: application/pgp-signature; name="signature.asc" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="signature.asc" LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KVmVyc2lvbjogR251UEcgdjEuNC43IChG cmVlQlNEKQoKaUQ4REJRRkdnQnZrd01KcW1KVng5NDRSQ21ub0FKNHluNjJ0ZG1Ob2N1NE9U amQ3N3RtWEFKL01Ld0NneWQxcQpNSWttQVcrNkpUN2U4UCsvSFB3MGJhMD0KPWw5blcKLS0t LS1FTkQgUEdQIFNJR05BVFVSRS0tLS0tCgo= --------------020407000204030409080000-- --------------enig8E3053F16B3ED674BE0D1FB1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGgCxFwMJqmJVx944RCgxDAKC3NR3OXYXTq4svetFfbc1F2zM+OACg4pFJ q2gvNUnjagrAl3wOsW7ZhRM= =Stx8 -----END PGP SIGNATURE----- --------------enig8E3053F16B3ED674BE0D1FB1--