Expand description
Parse and generate systemd tmpfiles.d entries.
ModulesΒ§
- path_
resolution π - Generic primitives for resolving a path against real symlinks in a
cap_std::fs::Dir-rooted filesystem.
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.
- 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.
- dir_
dev_ πino - The
(dev, ino)identity ofpath(relative todir), used as the βparentβ half of aPathIdentitylookup key. - 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. Declared paths are
canonicalized against
rootfs(seePathResolver) so the returned map is keyed by physical identity. - 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.