Skip to main content

Crate bootc_tmpfiles

Crate bootc_tmpfiles 

Source
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Β§

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.
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.
dir_dev_ino πŸ”’
The (dev, ino) identity of path (relative to dir), used as the β€œparent” half of a PathIdentity lookup 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 (see PathResolver) 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 /var underneath the target root to use tmpfiles.d.

Type AliasesΒ§

Result
The type of Result.