diff options
author | simon <simon@FreeBSD.org> | 2009-08-19 20:47:31 +0000 |
---|---|---|
committer | simon <simon@FreeBSD.org> | 2009-08-19 20:47:31 +0000 |
commit | 5bb5dcc9da07e5a183e368cffe134a4d5e09996f (patch) | |
tree | 9e040ed80ab4fc1b7cc806a08b75a87507b5395b /etc/freebsd-update.conf | |
parent | 0c0a18c1fff02d650c478b24b66cc5f5a6fa4179 (diff) | |
download | FreeBSD-src-5bb5dcc9da07e5a183e368cffe134a4d5e09996f.zip FreeBSD-src-5bb5dcc9da07e5a183e368cffe134a4d5e09996f.tar.gz |
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)
Diffstat (limited to 'etc/freebsd-update.conf')
-rw-r--r-- | etc/freebsd-update.conf | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/freebsd-update.conf b/etc/freebsd-update.conf index af53be4..4410903 100644 --- a/etc/freebsd-update.conf +++ b/etc/freebsd-update.conf @@ -63,3 +63,14 @@ MergeChanges /etc/ /var/named/etc/ /boot/device.hints # which *might* be installed of which FreeBSD Update should figure out # which actually are installed and upgrade those (StrictComponents no)? # StrictComponents no + +# When installing a new kernel perform a backup of the old one first +# so it is possible to boot the old kernel in case of problems. +# BackupKernel yes + +# If BackupKernel is enabled, the backup kernel is saved to this +# directory. +# BackupKernelDir /boot/kernel.old + +# When backing up a kernel also back up debug symbol files? +# BackupKernelSymbolFiles no |