Crate bootc_tmpfiles

Crate bootc_tmpfiles 

Source
Expand description

Parse and generate systemd tmpfiles.d entries.

Structsยง

BootcTmpfilesGeneration ๐Ÿ”’
The number of times weโ€™ve generated a tmpfiles.d
TmpfilesConvertConfig ๐Ÿ”’
Configuration for recursive tmpfiles conversion
TmpfilesResult
The result of processing tmpfiles.d
TmpfilesWrittenResult
The result of a tmpfiles.d generation run

Enumsยง

Error
An error when translating tmpfiles.d.
FileMeta ๐Ÿ”’
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_d for 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 /var underneath the target root to use tmpfiles.d.

Type Aliasesยง

Result
The type of Result.