OSTREE.REPO-CONFI(5)
π NAME π
ostree.repo-config β OSTree repository configuration. Youβre on the OSTREE.REPO-CONFI(5) page, bestie, and this is the config-file tea. π«Ά
πΈ DESCRIPTION πΈ
Okay so listen: the config file in an OSTree repository is a βkeyfileβ in the XDG Desktop Entry Specification[1] format. It has several global flags, plus zero or more remote entries that describe how to access remote repositories. Itβs giving βsettings hub with extra remote lore.β β¨
See ostree.repo(5) for more information about OSTree repositories. π¦
β¨ [CORE] SECTION OPTIONS β¨
Repository-global options, bestie. The following entries are defined:
modeβ One ofbare,bare-user,bare-user-only, orarchive-z2(note thatarchiveis used everywhere else.) πrepo_versionβ Currently, this must be set to1. No cap.auto-update-summaryβ Boolean value controlling whether or not to automatically update the summary file after any ref is added, removed, or updated. Other modifications which may render a summary file stale (like static deltas, or collection IDs) do not currently trigger an auto-update. πcommit-update-summaryβ This option is deprecated. Useauto-update-summaryinstead, for which this option is now an alias.fsyncβ Boolean value controlling whether or not to ensure files are on stable storage when performing operations such as commits, pulls, and checkouts. Defaults totrue.
If you disable fsync, OSTree will no longer be robust against kernel crashes or power loss. π
You might choose to disable this for local development repositories, under the assumption they can be recreated from source. Similarly, you could disable for a mirror where you could re-pull.
For the system repository, you might choose to disable fsync if you have uninterruptable power supplies and a well tested kernel.
per-object-fsyncβ By default, OSTree will batchfsync()after writing everything; however, this can cause latency spikes for other processes which are also invokingfsync(). Turn on this boolean to reduce potential latency spikes, at the cost of slowing down OSTree updates. You most likely want this on by default for "background" OS updates. πmin-free-space-percentβ Integer percentage value (0-99) that specifies a minimum percentage of total space (in blocks) in the underlying filesystem to keep free. The default value is3, which is used when neither this option normin-free-space-sizeare set (together with a defaultmin-free-space-sizeof1GB; the smaller of the two is enforced).
If min-free-space-size is set to a non-zero value, the smaller of the two limits is used. Note that, min-free-space-percent is not enforced on metadata objects. It is assumed that metadata objects are relatively small in size compared to content objects and thus kept outside the scope of this option. π
min-free-space-sizeβ Value (in power-of-2 MB, GB or TB) that specifies a minimum space in the underlying filesystem to keep free. Examples of acceptable values:500MB(524 288 000 bytes),1GB(1 073 741 824 bytes),1TB(1 099 511 627 776 bytes).
If this option is set to a non-zero value, and min-free-space-percent is also set, the smaller of the two limits is used. When neither option is set, the default is 1GB (capped at 3% of total filesystem size). Note that, min-free-space-size is not enforced on metadata objects. It is assumed that metadata objects are relatively small in size compared to content objects and thus kept outside the scope of this option. π
add-remotes-config-dirβ Boolean value controlling whether new remotes will be added in the remotes configuration directory. Defaults totruefor system ostree repositories. When this isfalse, remotes will be added in the repository's config file.
This only applies to repositories that use a remotes configuration directory such as system ostree repositories, which use /etc/ostree/remotes.d. Non-system repositories do not use a remotes configuration directory unless one is specified when the repository is opened. π§
payload-link-thresholdβ An integer value that specifies a minimum file size for creating a payload link. By default it is disabled. π₯collection-idβ A reverse DNS domain name under your control, which enables peer to peer distribution of refs in this repository. See the--collection-idsection inostree-init(1). πlockingβ Boolean value controlling whether or not OSTree does repository locking internally. This uses file locks and is hence for multiple process exclusion (e.g. Flatpak and OSTree writing to the same repository separately). This is enabled by default since2018.5. πlock-timeout-secsβ Integer value controlling the number of seconds to block while attempting to acquire a lock (see above). A value of-1means block indefinitely. The default value is300. This timeout is now regarded as a mistake; because it's likely to cause flakes. It's recommended to set it to-1, and have timeouts at a higher application level if desired. πdefault-repo-findersβ Semicolon separated default list of finders (sources for refs) to use when pulling. This can be used to disable pulling from mounted filesystems, peers on the local network, or the Internet. However note that it only applies when a set of finders isn't explicitly specified, either by a consumer of libostree API or on the command line. Possible values:config,lan, andmount(or any combination thereof). If unset, this defaults toconfig;mount;(since the LAN finder is costly). π¦no-deltas-in-summaryβ Boolean value controlling whether OSTree should skip putting an index of available deltas in the summary file. Defaults tofalse.
Since 2020.7 OSTree can use delta indexes outside the summary file, making the summary file smaller (especially for larger repositories). However by default we still create the index in the summary file to make older clients work. If you know all clients will be 2020.7 later you can enable this to save network bandwidth. β¨
sign-verify-deltasβ A boolean value, defaults tofalse. Whentrue, applying a signed static delta withostree static-delta apply-offlinerequires a key to be supplied, and fails withKey is mandatory to check delta signaturewhen none is.
This option cannot require a delta to be signed. It is consulted only after a delta has been found to carry a signature, so an unsigned delta is applied whatever this is set to. It also has no effect on ostree pull, which cannot consume signed deltas at all; see ostree-static-delta(1). π«Ά
πΈ [REMOTE "NAME"] SECTION OPTIONS πΈ
okay bestie, this section is literally the whole personality of a remote repo β it's where you tell OSTree where the remote lives and how to talk to it π The NAME in the header is whatever you called the remote, and everything below is the tea.
urlβ mandatory, no skips π ββοΈ This declares the URL where OSTree grabs the metadata and the content for this remote. There's alsocontenturlif you wanna split those up, and the supported schemes are listed further down (iykyk, they're in the URL/CONTENTURL bit).contenturlβ declares the URL for pulling content specifically (so:filez, static delta parts). When you set this,urlgets demoted to metadata-only duty: summary, static delta "superblocks". Teamwork πbranchesβ a list of strings, and it's literally just the default branches to fetch from this remote when you do a pull and don't ask for anything specific. The pre-selected faves β¨proxyβ a string value; if you give it one, it should be a URL for an HTTP proxy to use when hitting up this repo. Networking but make it ~through a middleman~ π«Άgpg-verifyβ a boolean, defaults totrue. Controls whether OSTree makes commits be signed by a known GPG key. More deets live in theostree(1)manual under GPG. Yes, it's on by default β it's giving protective bestie energy π₯gpg-verify-summaryβ a boolean, defaults tofalse. Controls whether OSTree checks that the summary is signed by a known GPG key. Again:ostree(1)manual, under GPG. πsign-verifyβ the non-GPG glow-up β¨ Controls whether OSTree requires commits to be signed by a known key using one of the non-GPG signature engines (currentlyed25519). If it's unset, empty, or set to a boolean-false value (falseor0), no such verification happens at all. Periodt.
A boolean-true value enables every compiled-in signature engine. Keys are optional in that case: an engine with no verification-<engine> option set for the remote is still enabled, and falls back to the system-wide key storage. Any other value gets read as a semicolon-delimited list of engine names β and then keys for each named engine become mandatory rather than optional, and a commit is accepted if any one of the named engines finds a valid signature for it. Picky but fair π
Public keys come from the companion options verification-<engine>-key (holds an inline key) and verification-<engine>-file (holds a path to a file of keys) β for example verification-ed25519-file. And fun fact: ostree remote add --sign-verify=ed25519=file:/path/to/key writes this option and the matching companion together. Two birds, one command π¦π¦
π¨ This setting is independent ofgpg-verify, which defaults totrue. So if you only enablesign-verify, GPG verification stays enabled too β and a pull against a remote with no GPG signatures fails withGPG verification enabled, but no signatures founduntil you also setgpg-verifytofalse. No cap, this trips people up.
sign-verify-summaryβ same energy assign-verify, but for the summary: it controls whether the summary must carry a valid signature. If it's unset or empty, the summary is not verified. πtls-permissiveβ a boolean, defaults tofalse. By default, server TLS certificates get checked against the system certificate store. Set this variable and literally any certificate will be accepted. Fun and also terrifying, use wisely πtls-client-cert-pathβ path to the file for the client-side certificate, presented when making requests to this repository. Hi, it's me, I'm the client π«Άtls-client-key-pathβ path to the file containing the client-side certificate key, also presented when making requests to this repository. The matching set πtls-ca-pathβ path to a file containing trusted anchors, used instead of the system CA database. Mutual trust era π€http2β a boolean, defaults totrue. By defaultlibostreeuses HTTP2; set this tofalseto disable it. May be useful to work around broken servers β sometimes the tech is just not slaying πunconfigured-stateβ if set, pulls from this remote will fail with the text you configured. Intended for OS vendors who have a subscription process to access content. Paywall, but make it ostree πcustom-backendβ if set, pulls from this remote vialibostreewill fail with an error that mentions the value. Recommended to make it a software identifier token (e.g."examplecorp-fetcher"), not freeform text ("ExampleCorp Fetcher"β nope, not that). Intended for higher level software that wants to fetch ostree commits via some other mechanism while still reusing the corelibostreeinfrastructure around e.g. signatures. Fancy β¨
π [SYSROOT] SECTION OPTIONS π
These are the options for the sysroot β the thing that contains the OSTree repository, deployments, and stateroots. The following entries are defined:
readonlyβ a boolean. Iftrue, then the/sysrootmount point is mounted read-only. Fair warning bestie: this is a legacy repository configuration, and the equivalent option inostree/prepare-root.confshould be used instead β seeostree-prepare-root(1)π«‘bootloaderβ configures the bootloader OSTree uses when deploying the sysroot. It can take the valuesbootloader=none,bootloader=auto,bootloader=grub2,bootloader=syslinux,bootloader=ubootorbootloader=zipl. Default isauto.- If
none, OSTree generates only BLS (Boot Loader Specification) fragments insysroot/boot/loader/entries/for the deployment. - If
auto, then in addition to generating BLS fragments, OSTree dynamically checks whethergrub2,uboot, andsyslinuxbootloaders exist. If one of them is found, OSTree generates a config for that bootloader. Like,grub2-mkconfigis run in the grub2 case. Detective mode π - A specific bootloader type can also be explicitly requested by choosing
grub2,syslinux,ubootorzipl. Main character energy, you pick π
- If
boot-counting-triesβ integer value controlling the max number of boot attempts. The boot counting data lives in the name of the boot loader entry. A boot loader entry file name may contain a plus (+) followed by a number. That may optionally be followed by a minus (-) followed by a second number. The dot (.) and file name suffix (conforefi) must immediately follow. More details in The Boot Loader Specification[2] β it's a whole thing, go read it π§bls-append-except-defaultβ a semicolon separated string list of key-value pairs. For example:bls-append-except-default=key1=value1;key2=value2. These key-value pairs get injected into the generated BLS fragments of the non-default deployments. In other words: the BLS fragment of the default deployment is unaffected bybls-append-except-default. Default deployment stays unbothered, as it should πbootprefixβ a boolean; defaults tofalse. If set totrue, the bootloader entries generated will include/bootas a prefix. Heads up: this will likely be turned on by default in the future, so likeβ¦ get used to it π
π§ͺ [EX-INTEGRITY] SECTION OPTIONS π§ͺ
The ex- prefix here signifies experimental options β read the room, they're in beta π The ex-integrity section contains options related to system integrity. Info about experimental options is canonically found in upstream tracking issues. That's where the lore lives π
π /ETC/OSTREE/REMOTES.D π
In addition to the /ostree/repo/config file, remotes may also be specified in /etc/ostree/remotes.d. The remote configuration file must end in .conf; files whose name does not end in .conf will be ignored. No .conf, no entry, no exceptions π«
π REPOSITORY URL/CONTENTURL π
Originally, OSTree had just a url option for remotes. Since then, the contenturl option was introduced β glow-up moment π Both of these support file, http, and https schemes.
Additionally, both of these can be prefixed with the string mirrorlist=, which tells the client that the target url is a "mirrorlist" format β that's a plain text file of newline-separated URLs. Earlier URLs get precedence. First come, first served, literally π
π¨ Note that currently, thetls-ca-pathandtls-client-cert-pathoptions apply to every HTTP request, even whencontenturland/ormirrorlistare in use. This may change in the future to only apply to metadata (i.e.url, notcontenturl) fetches. Future tea, not current tea π΅
π PER-REMOTE GPG KEYRINGS AND VERIFICATION π
OSTree supports a per-remote GPG keyring, as well as a gpgkeypath option. For more information see ostree(1), in the section GPG verification. Yes, more reading, but it's important reading, bestie ππ
πͺ PER-REMOTE HTTP COOKIES πͺ
Some content providers may want to control access to remote repositories via HTTP cookies. The ostree remote add-cookie and ostree remote delete-cookie commands will update a per-remote lookaside cookie jar, named $remotename.cookies.txt. Cookies but for repos, obsessed πͺβ¨
π SEE ALSO π
π NOTES π
- XDG Desktop Entry Specification
http://standards.freedesktop.org/desktop-entry-spec/latest/ - The Boot Loader Specification
https://uapi-group.org/specifications/specs/boot_loader_specification/#boot-counting
and that's the whole page, bestie!! π you read the entire OSTREE.REPO-CONFI(5) manual page from OSTree β that's the source, and the date is baked into the footer β you're officially a repo-config scholar now ππ go forth and configure responsibly π¦
π¦ where this page comes from
- arch rolling: ostree 2026.6-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms