From owner-svn-src-head@FreeBSD.ORG Thu Aug 20 17:16:14 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3186E106568B; Thu, 20 Aug 2009 17:16:14 +0000 (UTC) (envelope-from prvs=1476173d24=brian@Awfulhak.org) Received: from idcmail-mo2no.shaw.ca (idcmail-mo2no.shaw.ca [64.59.134.9]) by mx1.freebsd.org (Postfix) with ESMTP id D40508FC16; Thu, 20 Aug 2009 17:16:13 +0000 (UTC) Received: from pd6ml1no-ssvc.prod.shaw.ca ([10.0.153.160]) by pd5mo1no-svcs.prod.shaw.ca with ESMTP; 20 Aug 2009 10:47:47 -0600 X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.0 c=1 a=r9TD9u2CHe4A:10 a=MJPcHhXccCG8eBs0us8XwA==:17 a=6I5d2MoRAAAA:8 a=MMwg4So0AAAA:8 a=ISM9mAlW1Z4Umi7AIGAA:9 a=_6IwDxac_XSlGSdX_RZw439HxFkA:4 a=SV7veod9ZcQA:10 a=WJ3hkfHDukgA:10 Received: from unknown (HELO store.lan.Awfulhak.org) ([70.79.162.198]) by pd6ml1no-dmz.prod.shaw.ca with ESMTP; 20 Aug 2009 10:47:47 -0600 Received: from store.lan.Awfulhak.org (localhost.localdomain [127.0.0.1]) by localhost (Email Security Appliance) with SMTP id BDCEDC43FBC_A8D7E2DB; Thu, 20 Aug 2009 16:47:41 +0000 (GMT) Received: from gw.Awfulhak.org (gw.lan.Awfulhak.org [172.16.0.1]) by store.lan.Awfulhak.org (Sophos Email Appliance) with ESMTP id 8C068C460F6_A8D7E25F; Thu, 20 Aug 2009 16:47:33 +0000 (GMT) Received: from dev.lan.Awfulhak.org (brian@dev.lan.Awfulhak.org [172.16.0.5]) by gw.Awfulhak.org (8.14.3/8.14.3) with ESMTP id n7KGlb9R013759; Thu, 20 Aug 2009 09:47:37 -0700 (PDT) (envelope-from brian@Awfulhak.org) Date: Thu, 20 Aug 2009 09:47:37 -0700 From: Brian Somers To: "Simon L. Nielsen" Message-ID: <20090820094737.1f9a6121@dev.lan.Awfulhak.org> In-Reply-To: <200908192047.n7JKlVCE065020@svn.freebsd.org> References: <200908192047.n7JKlVCE065020@svn.freebsd.org> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.16.5; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Aug 2009 17:16:14 -0000 On Wed, 19 Aug 2009 20:47:31 +0000 (UTC) "Simon L. Nielsen" 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 Don't _EVER_ lose your sense of humour !