xref: /freebsd/share/man/man5/freebsd-update.conf.5 (revision b80bb8b197aed4db48810d67be0239fd029c6465)
148ffe56aSColin Percival.\"-
248ffe56aSColin Percival.\" Copyright 2006 Colin Percival
348ffe56aSColin Percival.\" All rights reserved
448ffe56aSColin Percival.\"
548ffe56aSColin Percival.\" Redistribution and use in source and binary forms, with or without
648ffe56aSColin Percival.\" modification, are permitted providing that the following conditions
748ffe56aSColin Percival.\" are met:
848ffe56aSColin Percival.\" 1. Redistributions of source code must retain the above copyright
948ffe56aSColin Percival.\"    notice, this list of conditions and the following disclaimer.
1048ffe56aSColin Percival.\" 2. Redistributions in binary form must reproduce the above copyright
1148ffe56aSColin Percival.\"    notice, this list of conditions and the following disclaimer in the
1248ffe56aSColin Percival.\"    documentation and/or other materials provided with the distribution.
1348ffe56aSColin Percival.\"
1448ffe56aSColin Percival.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
1548ffe56aSColin Percival.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
1648ffe56aSColin Percival.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1748ffe56aSColin Percival.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
1848ffe56aSColin Percival.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1948ffe56aSColin Percival.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2048ffe56aSColin Percival.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2148ffe56aSColin Percival.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
2248ffe56aSColin Percival.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
2348ffe56aSColin Percival.\" IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2448ffe56aSColin Percival.\" POSSIBILITY OF SUCH DAMAGE.
2548ffe56aSColin Percival.\"
2648ffe56aSColin Percival.\" $FreeBSD$
2748ffe56aSColin Percival.\"
286d17f2d0SMateusz Piotrowski.Dd February 17, 2022
2948ffe56aSColin Percival.Dt FREEBSD-UPDATE.CONF 5
30*b80bb8b1SMateusz Piotrowski.Os
3148ffe56aSColin Percival.Sh NAME
3248ffe56aSColin Percival.Nm freebsd-update.conf
3348ffe56aSColin Percival.Nd configuration file for
3448ffe56aSColin Percival.Xr freebsd-update 8
3548ffe56aSColin Percival.Sh DESCRIPTION
3648ffe56aSColin PercivalThe
3748ffe56aSColin Percival.Nm
3848ffe56aSColin Percivalfile controls the behaviour of the
3948ffe56aSColin Percival.Xr freebsd-update 8
4048ffe56aSColin Percivalutility.
4148ffe56aSColin PercivalThe file contains lines consisting of a case-sensitive option name and
4248ffe56aSColin Percivalzero or more parameters.
4348ffe56aSColin PercivalEmpty lines and any part of a line following a
4448ffe56aSColin Percival.Ql #
4548ffe56aSColin Percivalcharacter are ignored.
4648ffe56aSColin PercivalUnless stated otherwise, specifying an option multiple times is an
4748ffe56aSColin Percivalerror.
4848ffe56aSColin Percival.Pp
4948ffe56aSColin PercivalThe possible options and their meanings are as follows:
50*b80bb8b1SMateusz Piotrowski.Bl -tag -width "BackupKernelSymbolFiles"
5148ffe56aSColin Percival.It Cm KeyPrint
5248ffe56aSColin PercivalThe single parameter following this keyword is the SHA256 hash
5348ffe56aSColin Percivalof the RSA key which will be trusted to sign updates.
5448ffe56aSColin Percival.It Cm ServerName
5548ffe56aSColin PercivalThe single parameter following this keyword is the name of the
5648ffe56aSColin Percivalserver or server pool from which updates will be downloaded.
5748ffe56aSColin Percival.It Cm Components
5848ffe56aSColin PercivalThe parameters following this keyword are the components or
5948ffe56aSColin Percivalsub-components of
6048ffe56aSColin Percival.Fx
618167eab9SRuslan Ermilovwhich will be updated.
628167eab9SRuslan ErmilovThe components are
6348ffe56aSColin Percival.Dq src
6448ffe56aSColin Percival(source code),
6548ffe56aSColin Percival.Dq world
6648ffe56aSColin Percival(non-kernel binaries), and
6748ffe56aSColin Percival.Dq kernel ;
6848ffe56aSColin Percivalthe sub-components are the individual distribution sets generated as
6948ffe56aSColin Percivalpart of the release process (e.g.,
7048ffe56aSColin Percival.Dq src/base ,
7148ffe56aSColin Percival.Dq src/sys ,
7248ffe56aSColin Percival.Dq world/base ,
7348ffe56aSColin Percival.Dq world/catpages ,
7448ffe56aSColin Percival.Dq kernel/smp ) .
7548ffe56aSColin PercivalNote that prior to
7648ffe56aSColin Percival.Fx 6.1 ,
7748ffe56aSColin Percivalthe
7848ffe56aSColin Percival.Dq kernel
7948ffe56aSColin Percivalcomponent was distributed as part of
8048ffe56aSColin Percival.Dq world/base .
8148ffe56aSColin Percival.Pp
8248ffe56aSColin PercivalThis option can be specified multiple times, and the parameters
8348ffe56aSColin Percivalaccumulate.
8448ffe56aSColin Percival.It Cm IgnorePaths
8548ffe56aSColin PercivalThe parameters following this keyword are regular expressions;
8648ffe56aSColin Percivalupdates to paths which start with a string matching one of
8748ffe56aSColin Percivalthese regular expressions will be ignored.
8848ffe56aSColin Percival.Pp
8948ffe56aSColin PercivalThis option can be specified multiple times, and the parameters
9048ffe56aSColin Percivalaccumulate.
91cd44e09cSColin Percival.It Cm IDSIgnorePaths
92cd44e09cSColin PercivalThe parameters following this keyword are regular expressions;
93cd44e09cSColin Percivalpaths which start with a string matching one of these regular
94*b80bb8b1SMateusz Piotrowskiexpressions will be ignored by
95*b80bb8b1SMateusz Piotrowski.Xr freebsd-update 8
96*b80bb8b1SMateusz PiotrowskiIDS.
97cd44e09cSColin Percival.Pp
98cd44e09cSColin PercivalThis option can be specified multiple times, and the parameters
99cd44e09cSColin Percivalaccumulate.
10048ffe56aSColin Percival.It Cm UpdateIfUnmodified
10148ffe56aSColin PercivalThe parameters following this keyword are regular expressions;
10248ffe56aSColin Percivalupdates to paths which start with a string matching one of
10348ffe56aSColin Percivalthese regular expressions will be ignored if the files have
104*b80bb8b1SMateusz Piotrowskibeen modified locally (unless they are merged \(em see the
105*b80bb8b1SMateusz Piotrowski.Cm MergeChanges
106*b80bb8b1SMateusz Piotrowskioption).
107db6b0a61SColin Percival.Pp
108db6b0a61SColin PercivalThis option can be specified multiple times, and the parameters
109db6b0a61SColin Percivalaccumulate.
110db6b0a61SColin Percival.It Cm MergeChanges
111db6b0a61SColin PercivalThe parameters following this keyword are regular expressions;
112db6b0a61SColin Percivalupdates to paths which start with a string matching one of
113db6b0a61SColin Percivalthese regular expressions will be merged with local modifications.
11448ffe56aSColin Percival.Pp
11548ffe56aSColin PercivalThis option can be specified multiple times, and the parameters
11648ffe56aSColin Percivalaccumulate.
11748ffe56aSColin Percival.It Cm WorkDir
11848ffe56aSColin PercivalThe single parameter following this keyword is the directory
11948ffe56aSColin Percivalin which temporary files and downloaded updates will be stored.
12048ffe56aSColin Percival.It Cm MailTo
12148ffe56aSColin PercivalThe single parameter following this keyword is the address
12248ffe56aSColin Percivalto which
123*b80bb8b1SMateusz Piotrowski.Xr cron 8
12448ffe56aSColin Percivaloutput will be mailed.
12548ffe56aSColin Percival.It Cm AllowAdd
12648ffe56aSColin PercivalThe single parameter following this keyword must be
12748ffe56aSColin Percival.Dq yes
12848ffe56aSColin Percivalor
12948ffe56aSColin Percival.Dq no
13048ffe56aSColin Percivaland specifies whether
131*b80bb8b1SMateusz Piotrowski.Xr freebsd-update 8
13248ffe56aSColin Percivalis allowed to create new files, directories, and symlinks if
1338167eab9SRuslan Ermilovthese are part of updates downloaded.
1348167eab9SRuslan ErmilovNote that
135*b80bb8b1SMateusz Piotrowski.Xr freebsd-update 8
13648ffe56aSColin Percivalwill not re-add files which have been deleted from a
13748ffe56aSColin Percival.Fx
13848ffe56aSColin Percivalinstallation unless those files were previously added as part
13948ffe56aSColin Percivalof an update.
14048ffe56aSColin Percival.It Cm AllowDelete
14148ffe56aSColin PercivalThe single parameter following this keyword must be
14248ffe56aSColin Percival.Dq yes
14348ffe56aSColin Percivalor
14448ffe56aSColin Percival.Dq no
14548ffe56aSColin Percivaland specifies whether
146*b80bb8b1SMateusz Piotrowski.Xr freebsd-update 8
14748ffe56aSColin Percivalis allowed to delete files, directories, and symlinks as
14848ffe56aSColin Percivalpart of updates downloaded.
14948ffe56aSColin Percival.It Cm KeepModifiedMetadata
15048ffe56aSColin PercivalThe single parameter following this keyword must be
15148ffe56aSColin Percival.Dq yes
15248ffe56aSColin Percivalor
15348ffe56aSColin Percival.Dq no
15448ffe56aSColin Percivaland specifies whether
155*b80bb8b1SMateusz Piotrowski.Xr freebsd-update 8
15648ffe56aSColin Percivalshould keep existing file ownership, permissions, and flags
15748ffe56aSColin Percivalwhen installing updates if these have been modified locally.
158db6b0a61SColin Percival.It Cm StrictComponents
159db6b0a61SColin PercivalThe single parameter following this keyword must be
160db6b0a61SColin Percival.Dq yes
161db6b0a61SColin Percivalor
162db6b0a61SColin Percival.Dq no
163db6b0a61SColin Percivaland specifies whether
164*b80bb8b1SMateusz Piotrowski.Xr freebsd-update 8
165db6b0a61SColin Percivalshould interpret the list of components of
166db6b0a61SColin Percival.Fx
167db6b0a61SColin Percivalspecified via the
168db6b0a61SColin Percival.Cm Components
169db6b0a61SColin Percivaloption strictly as a list of components installed which
170db6b0a61SColin Percivalshould be upgraded when the
171db6b0a61SColin Percival.Cm upgrade
172db6b0a61SColin Percivalcommand is used ("yes"), or merely as a list of components
173db6b0a61SColin Percivalwhich might be installed, of which
174*b80bb8b1SMateusz Piotrowski.Xr freebsd-update 8
175db6b0a61SColin Percivalshould identify which in fact are present ("no").
17623d827efSSimon L. B. Nielsen.It Cm BackupKernel
17723d827efSSimon L. B. NielsenThe single parameter following this keyword must be
17823d827efSSimon L. B. Nielsen.Dq yes
17923d827efSSimon L. B. Nielsenor
18023d827efSSimon L. B. Nielsen.Dq no
18123d827efSSimon L. B. Nielsenand specifies whether
182*b80bb8b1SMateusz Piotrowski.Xr freebsd-update 8
18323d827efSSimon L. B. Nielsenwill create a backup of the old kernel before installing a new kernel.
18423d827efSSimon L. B. NielsenThis backup kernel can be used to recover a system where the newly
18523d827efSSimon L. B. Nielseninstalled kernel somehow did not work.
18623d827efSSimon L. B. NielsenNote that the backup kernel is not reverted to its original state by
18723d827efSSimon L. B. Nielsenthe
188*b80bb8b1SMateusz Piotrowski.Xr freebsd-update 8
18923d827efSSimon L. B. Nielsenrollback command.
19023d827efSSimon L. B. Nielsen.It Cm BackupKernelDir
19123d827efSSimon L. B. NielsenThis keyword sets the directory which is used to store a backup
19223d827efSSimon L. B. Nielsenkernel, if the BackupKernel feature is enabled.
19323d827efSSimon L. B. NielsenIf the directory already exist, and it was not created by
194*b80bb8b1SMateusz Piotrowski.Xr freebsd-update 8 ,
19523d827efSSimon L. B. Nielsenthe directory is skipped.
19623d827efSSimon L. B. NielsenIn the case of the primary directory name not being usable, a number
19723d827efSSimon L. B. Nielsenstarting with
19823d827efSSimon L. B. Nielsen.Sq 1
19923d827efSSimon L. B. Nielsenis appended to the directory name.
20023d827efSSimon L. B. NielsenLike with the primary directory name, the constructed directory name is
20123d827efSSimon L. B. Nielsenonly used if the path name does not exist, or if the directory was
20223d827efSSimon L. B. Nielsenpreviously created by
203*b80bb8b1SMateusz Piotrowski.Xr freebsd-update 8 .
20423d827efSSimon L. B. NielsenIf the constructed directory still exist the appended number is
20523d827efSSimon L. B. Nielsenincremented with 1 and the directory search process restarted.
20623d827efSSimon L. B. NielsenShould the number increment go above 9,
207*b80bb8b1SMateusz Piotrowski.Xr freebsd-update 8
20823d827efSSimon L. B. Nielsenwill abort.
20923d827efSSimon L. B. Nielsen.It Cm BackupKernelSymbolFiles
21023d827efSSimon L. B. NielsenThe single parameter following this keyword must be
21123d827efSSimon L. B. Nielsen.Dq yes
21223d827efSSimon L. B. Nielsenor
21323d827efSSimon L. B. Nielsen.Dq no
21423d827efSSimon L. B. Nielsenand specifies whether
215*b80bb8b1SMateusz Piotrowski.Xr freebsd-update 8
21623d827efSSimon L. B. Nielsenwill also backup kernel symbol files, if they exist.
21723d827efSSimon L. B. NielsenThe kernel symbol files takes up a lot of disk space and are not
21823d827efSSimon L. B. Nielsenneeded for recovery purposes.
21923d827efSSimon L. B. NielsenIf the symbol files are needed, after recovering a system using the
22023d827efSSimon L. B. Nielsenbackup kernel, the
221*b80bb8b1SMateusz Piotrowski.Xr freebsd-update 8
22223d827efSSimon L. B. Nielsenrollback command will recreate the symbol files along with the old
22323d827efSSimon L. B. Nielsenkernel.
2246d17f2d0SMateusz Piotrowski.It Cm CreateBootEnv
2256d17f2d0SMateusz PiotrowskiThe single parameter following this keyword must be
2266d17f2d0SMateusz Piotrowski.Dq yes
2276d17f2d0SMateusz Piotrowskior
2286d17f2d0SMateusz Piotrowski.Dq no
2296d17f2d0SMateusz Piotrowskiand specifies whether
230*b80bb8b1SMateusz Piotrowski.Xr freebsd-update 8
2316d17f2d0SMateusz Piotrowskiwill create a new boot environment using
2326d17f2d0SMateusz Piotrowski.Xr bectl 8
2336d17f2d0SMateusz Piotrowskiwhen installing patches.
2346d17f2d0SMateusz Piotrowski.Pp
2356d17f2d0SMateusz PiotrowskiThe name of the new boot environment consists of the current
2366d17f2d0SMateusz Piotrowski.Fx
2376d17f2d0SMateusz Piotrowskiversion:
2386d17f2d0SMateusz Piotrowski.Bd -literal -offset indent
2396d17f2d0SMateusz Piotrowskifreebsd-version -ku | sort -V | tail -n 1
2406d17f2d0SMateusz Piotrowski.Ed
2416d17f2d0SMateusz Piotrowski.Pp
2426d17f2d0SMateusz Piotrowskiand a timestamp:
2436d17f2d0SMateusz Piotrowski.Bd -literal -offset indent
2446d17f2d0SMateusz Piotrowskidate +"%Y-%m-%d_%H%M%S"
2456d17f2d0SMateusz Piotrowski.Ed
2466d17f2d0SMateusz Piotrowski.Pp
2476d17f2d0SMateusz Piotrowskiseparated by a single dash, e.g.:
2486d17f2d0SMateusz Piotrowski.Bd -literal -offset indent
2496d17f2d0SMateusz Piotrowski13.0-RELEASE-p7_2022-02-16_141502
2506d17f2d0SMateusz Piotrowski.Ed
2516d17f2d0SMateusz Piotrowski.Pp
252*b80bb8b1SMateusz Piotrowski.Xr freebsd-update 8
2536d17f2d0SMateusz Piotrowskidoes not attempt to create a boot environment
2546d17f2d0SMateusz Piotrowskiif any of the following applies:
2556d17f2d0SMateusz Piotrowski.Pp
2566d17f2d0SMateusz Piotrowski.Bl -dash -compact
2576d17f2d0SMateusz Piotrowski.It
2586d17f2d0SMateusz PiotrowskiZFS is not used.
2596d17f2d0SMateusz Piotrowski.It
2606d17f2d0SMateusz PiotrowskiThe ZFS root is not set up for boot environments
2616d17f2d0SMateusz Piotrowski.Po see the check command of
2626d17f2d0SMateusz Piotrowski.Xr bectl 8
2636d17f2d0SMateusz Piotrowskifor details
2646d17f2d0SMateusz Piotrowski.Pc .
2656d17f2d0SMateusz Piotrowski.It
266*b80bb8b1SMateusz Piotrowski.Xr freebsd-update 8
2676d17f2d0SMateusz Piotrowskiis running in a
2686d17f2d0SMateusz Piotrowski.Xr jail 8 .
2696d17f2d0SMateusz Piotrowski.It
270*b80bb8b1SMateusz Piotrowski.Xr freebsd-update 8
2716d17f2d0SMateusz Piotrowskiis updating a root directory selected via
2726d17f2d0SMateusz Piotrowskithe basedir
2736d17f2d0SMateusz Piotrowski.Pq Fl b
2746d17f2d0SMateusz Piotrowskior jail
2756d17f2d0SMateusz Piotrowski.Pq Fl j
2766d17f2d0SMateusz Piotrowskiflags.
27748ffe56aSColin Percival.El
278*b80bb8b1SMateusz Piotrowski.El
27948ffe56aSColin Percival.Sh FILES
28048ffe56aSColin Percival.Bl -tag -width "/etc/freebsd-update.conf"
2812710751bSJoel Dahl.It Pa /etc/freebsd-update.conf
28248ffe56aSColin PercivalDefault location of the
283*b80bb8b1SMateusz Piotrowski.Xr freebsd-update 8
28448ffe56aSColin Percivalconfiguration file.
28548ffe56aSColin Percival.El
28648ffe56aSColin Percival.Sh SEE ALSO
2878167eab9SRuslan Ermilov.Xr sha256 1 ,
2886d17f2d0SMateusz Piotrowski.Xr bectl 8 ,
28948ffe56aSColin Percival.Xr freebsd-update 8
29048ffe56aSColin Percival.Sh AUTHORS
291a63d6c94SBaptiste Daroussin.An Colin Percival Aq Mt cperciva@FreeBSD.org
292