Topic: reverting to previous kernel

Hi all,

I built a custom kernel on my FreeBSD 8.2-RELEASE server and it failed to boot. I'd like to revert to the previous kernel.

I see the following directories in /boot:

kernel
kernel.OK
kernel.old
kernel.old1

If I simply copy kernel.OK to kernel will this be sufficient?

Thanks.

Re: reverting to previous kernel

Can you 'ls -lac' each kernel to see which of the three is most recent but not equal to the failing one?

Re: reverting to previous kernel

Kernel.OK turned out to be the one. I did this:

# mv kernel kernel.BAD
# mv kernel.OK kernel

Rebooted and all was back to normal.