Module commit

Module commit 

Source
Expand description

This module contains the functions to implement the commit procedures as part of building an ostree container image. https://github.com/ostreedev/ostree-rs-ext/issues/159

Constantsยง

FORCE_CLEAN_PATHS ๐Ÿ”’
Directories for which we will always remove all content.

Functionsยง

clean_paths_in ๐Ÿ”’
clean_subdir ๐Ÿ”’
container_commit ๐Ÿ”’
Entrypoint to the commit procedures, initially we just have one validation but we expect more in the future.
prepare_ostree_commit_in
Given a root filesystem, clean out empty directories and warn about files in /var. /run, /tmp, and /var/tmp have their contents recursively cleaned.
prepare_ostree_commit_in_nonstrict
Like prepare_ostree_commit_in but only emits warnings about unsupported files in /var and will not error.
remove_all_on_mount_recurse ๐Ÿ”’
Recursively remove the target directory, but avoid traversing across mount points.