From owner-freebsd-questions@FreeBSD.ORG Sun Mar 26 14:07:48 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8323416A401 for ; Sun, 26 Mar 2006 14:07:48 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay01.ispgateway.de (smtprelay01.ispgateway.de [80.67.18.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id A669743D45 for ; Sun, 26 Mar 2006 14:07:47 +0000 (GMT) (envelope-from freebsd-listen@fabiankeil.de) Received: (qmail 28569 invoked from network); 26 Mar 2006 14:07:45 -0000 Received: from unknown (HELO localhost) ([pbs]775067@[217.50.148.160]) (envelope-sender ) by smtprelay01.ispgateway.de (qmail-ldap-1.03) with SMTP for ; 26 Mar 2006 14:07:45 -0000 Date: Sun, 26 Mar 2006 16:07:06 +0200 From: Fabian Keil To: "Jonathan Horne" Message-ID: <20060326160706.3fa59bfc@localhost> In-Reply-To: <200603260550.k2Q5oe7X006676@zeus.int.dfwlp.com> References: <442629F5.5050904@highperformance.net> <200603260550.k2Q5oe7X006676@zeus.int.dfwlp.com> X-Mailer: Sylpheed-Claws 2.0.0 (GTK+ 2.8.6; i386-portbld-freebsd6.0) X-PGP-KEY-URL: http://www.fabiankeil.de/gpg-keys/freebsd-listen-2006-08-19.asc Mime-Version: 1.0 Content-Type: multipart/signed; boundary=Sig_577kHaJr5KdNKSNDiqhWPSA; protocol="application/pgp-signature"; micalg=PGP-SHA1 Cc: 'freebsd general questions' Subject: Re: what is the process for migrating a pre-built kernel to a new machine? 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: Sun, 26 Mar 2006 14:07:48 -0000 --Sig_577kHaJr5KdNKSNDiqhWPSA Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable "Jonathan Horne" wrote: > So if when you say "copy the kernel", do you just mean the contents > of the /boot/kernel directory, and that's as plain as it is? Or is > there more to it? You should make sure that userland and the new kernel are in sync. =20 > The reason I'm asking, is that I always plan for disaster recovery, > and after a build, easily the single longest task for bringing my > particular system totally back online, is compiling the kernel (im > still running my 5 year old dual p3 800). For time's sake during > recovery, I would like to skip at least that process. If you do a make installkernel /boot/kernel is copied to /boot/kernel.old. If your new kernel doesn't work, you can still use your old one. Of course if you build two broken kernels in a row, the kernel from /boot/kernel.old doesn't work either, therefore it doesn't hurt to copy a known to work kernel directory to /boot/whatever, to make sure it's not overwritten. =20 > Can you give me more specifics on exactly what should be moved/copied? It depends on your kernel configuration. The easiest way to make sure you don't forget anything is to export /usr/src and /usr/obj on your build machine, mount them on the target machine and run make installkernel from there. Fabian --=20 http://www.fabiankeil.de/ --Sig_577kHaJr5KdNKSNDiqhWPSA Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iD8DBQFEJqAvjV8GA4rMKUQRAgi/AKDCY3CAxTbZ5OO9RjabKb/sbK1JQACfSZwb DZRVfxV3oycs8mlEvFOxojM= =VOAb -----END PGP SIGNATURE----- --Sig_577kHaJr5KdNKSNDiqhWPSA--