read_tmpfiles

Function read_tmpfiles 

Source
pub(crate) fn read_tmpfiles(
    rootfs: &Dir,
) -> Result<(BTreeMap<PathBuf, String>, BootcTmpfilesGeneration)>
Expand description

Read all tmpfiles.d entries in the target directory, and return a mapping from (file path) => (single tmpfiles.d entry line)

This function reads from both /usr/lib/tmpfiles.d and /etc/tmpfiles.d, with /etc entries taking precedence (matching systemd’s behavior).