manual: Note that the bare-user mode exists

This commit is contained in:
Colin Walters 2016-02-18 18:21:32 -05:00
parent d3eee15f84
commit 707c14aeeb
1 changed files with 17 additions and 8 deletions

View File

@ -49,14 +49,23 @@ header, for regular files, the content follows.
# Repository types and locations # Repository types and locations
Also unlike git, an OSTree repository can be in one of two separate Also unlike git, an OSTree repository can be in one of three separate
modes: `bare` and `archive-z2`. A bare repository is one where modes: `bare`, `bare-user`, and `archive-z2`. A bare repository is
content files are just stored as regular files; it's designed to be one where content files are just stored as regular files; it's
the source of a "hardlink farm", where each operating system checkout designed to be the source of a "hardlink farm", where each operating
is merely links into it. If you want to store files owned by system checkout is merely links into it. If you want to store files
e.g. root in this mode, you must run OSTree as root. In contrast, the owned by e.g. root in this mode, you must run OSTree as root.
`archive-z2` mode is designed for serving via plain HTTP. Like tar
files, it can be read/written by non-root users. The `bare-user` is a later addition that is like `bare` in that files
are unpacked, but it can (and should generally) be created as
non-root. In this mode, extended metadata such as owner uid, gid, and
extended attributes are stored but not actually applied.
The `bare-user` mode is useful for build systems that run as non-root
but want to generate root-owned content, as well as non-root container
systems.
In contrast, the `archive-z2` mode is designed for serving via plain
HTTP. Like tar files, it can be read/written by non-root users.
On an OSTree-deployed system, the "system repository" is On an OSTree-deployed system, the "system repository" is
`/ostree/repo`. It can be read by any uid, but only written by root. `/ostree/repo`. It can be read by any uid, but only written by root.