what is the process for migrating a pre-built kernel to a new machine?

Fabian Keil freebsd-listen at fabiankeil.de
Sun Mar 26 14:07:48 UTC 2006


"Jonathan Horne" <freebsd at dfwlp.com> 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.
 
> 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.
 
> 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
-- 
http://www.fabiankeil.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20060326/8bd4ad80/signature.pgp


More information about the freebsd-questions mailing list