Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Aug 2009 09:47:37 -0700
From:      Brian Somers <brian@Awfulhak.org>
To:        "Simon L. Nielsen" <simon@FreeBSD.org>
Cc:        svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org
Subject:   Re: svn commit: r196392 - in head: etc share/man/man5 usr.sbin/freebsd-update
Message-ID:  <20090820094737.1f9a6121@dev.lan.Awfulhak.org>
In-Reply-To: <200908192047.n7JKlVCE065020@svn.freebsd.org>
References:  <200908192047.n7JKlVCE065020@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 19 Aug 2009 20:47:31 +0000 (UTC) "Simon L. Nielsen" <simon@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@Awfulhak.org>
Don't _EVER_ lose your sense of humour !               <brian@FreeBSD.org>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090820094737.1f9a6121>