summaryrefslogtreecommitdiffstats
path: root/etc/freebsd-update.conf
diff options
context:
space:
mode:
authorsimon <simon@FreeBSD.org>2009-08-19 21:01:32 +0000
committersimon <simon@FreeBSD.org>2009-08-19 21:01:32 +0000
commit31e949ad31327c0225bdcc0c9c4612c1332e4af6 (patch)
treed7171fcd6ab8a77a46ca5d4e0e8ea9a3440d4f30 /etc/freebsd-update.conf
parent594f0177cea5291ff5a34f8ae3e061bab9704c13 (diff)
downloadFreeBSD-src-31e949ad31327c0225bdcc0c9c4612c1332e4af6.zip
FreeBSD-src-31e949ad31327c0225bdcc0c9c4612c1332e4af6.tar.gz
MFC 196392:
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. Reviewed by: cperciva Approved by: re (kib)
Diffstat (limited to 'etc/freebsd-update.conf')
-rw-r--r--etc/freebsd-update.conf11
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
OpenPOWER on IntegriCloud