Expand description
Parse and generate systemd tmpfiles.d entries.
Structsยง
- Bootc
Tmpfiles ๐Generation - The number of times weโve generated a tmpfiles.d
- Tmpfiles
Convert ๐Config - Configuration for recursive tmpfiles conversion
- Tmpfiles
Result - The result of processing tmpfiles.d
- Tmpfiles
Written Result - The result of a tmpfiles.d generation run
Enumsยง
- Error
- An error when translating tmpfiles.d.
- File
Meta ๐ - In tmpfiles.d we only handle directories and symlinks. Directories just have a mode, and symlinks just have a target.
Constantsยง
- BOOTC_
GENERATED_ ๐PREFIX - The path to the file we use for generation
- ETC_
TMPFILESD ๐ - TMPFILESD ๐
Functionsยง
- canonicalize_
escape_ ๐path - Canonicalize and escape a path value for tmpfiles.d At the current time the only canonicalization we do is remap /var/run -> /run.
- convert_
path_ ๐to_ tmpfiles_ d_ recurse - Recursively explore target directory and translate content to tmpfiles.d entries. See
convert_var_to_tmpfiles_dfor more background. - convert_
var_ to_ tmpfiles_ current_ root - Convert /var for the current root to use systemd tmpfiles.d.
- escape_
path ๐ - find_
missing_ tmpfiles_ current_ root - Convert /var for the current root to use systemd tmpfiles.d.
- impl_
unescape_ ๐path_ until - read_
tmpfiles ๐ - Read all tmpfiles.d entries in the target directory, and return a mapping from (file path) => (single tmpfiles.d entry line)
- read_
tmpfiles_ ๐from_ dir - Read all tmpfiles.d entries from a single directory
- tmpfiles_
entry_ ๐get_ path - translate_
to_ ๐tmpfiles_ d - Translate a filepath entry to an equivalent tmpfiles.d line.
- unescape_
path ๐ - var_
to_ tmpfiles - Translate the content of
/varunderneath the target root to use tmpfiles.d.
Type Aliasesยง
- Result
- The type of Result.