svn commit: r196392 - in head: etc share/man/man5 usr.sbin/freebsd-update

Brian Somers brian at Awfulhak.org
Thu Aug 20 17:16:14 UTC 2009


On Wed, 19 Aug 2009 20:47:31 +0000 (UTC) "Simon L. Nielsen" <simon at FreeBSD.org> wrote:
> Author: simon
> Date: Wed Aug 19 20:47:31 2009
> New Revision: 196392
> URL: http://svn.freebsd.org/changeset/base/196392
> 
> Log:
>   Add support for backing up the old kernel when installing a new kernel
>   using freebsd-update.  This applies to using freebsd-update in "upgrade
>   mode" and normal freebsd-update on a security branch.
>   
>   The backup kernel will be written to /boot/kernel.old, if the directory
>   does not exist, or the directory was created by freebsd-update in a
>   previous backup.  Otherwise freebsd-update will generate a new directory
>   name for use by the backup.  By default symbol files are not backed up
>   to save diskspace and avoid filling up the root partition.
>   
>   This feature is fully configurable in the freebsd-update config file,
>   but defaults to enabled.
>   
>   MFC after:	1 week (stable/7)
>   Reviewed by:	cperciva
>   Approved by:	re (kib)

This should really have the same behaviour as ``make installkernel''.
After moving the kernel to kernel.old it should update kern.bootfile and
it should not backup kernel => kernel.old if kern.bootfile already points
at kernel.old.

It's bad if two kernel upgrades without an intervening reboot blow away
your running kernel :(

-- 
Brian Somers                                          <brian at Awfulhak.org>
Don't _EVER_ lose your sense of humour !               <brian at FreeBSD.org>


More information about the svn-src-all mailing list