]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add support for backing up the old kernel when installing a new kernel
authorSimon L. B. Nielsen <simon@FreeBSD.org>
Wed, 19 Aug 2009 20:47:31 +0000 (20:47 +0000)
committerSimon L. B. Nielsen <simon@FreeBSD.org>
Wed, 19 Aug 2009 20:47:31 +0000 (20:47 +0000)
commit23d827ef055170d3c43b4db46f9959f10a4217ed
tree9e040ed80ab4fc1b7cc806a08b75a87507b5395b
parent12f27c4e646c4ec763938195296f475c1b569861
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)
etc/freebsd-update.conf
share/man/man5/freebsd-update.conf.5
usr.sbin/freebsd-update/freebsd-update.sh