Skip to main content

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ยง

CONTAINER_COMMIT_NOTICE ๐Ÿ”’
Printed by ostree container commit to point users at its replacement.
CONTAINER_COMMIT_NOTICE_DELAY ๐Ÿ”’
How long to pause after CONTAINER_COMMIT_NOTICE, so it stands out in build logs.
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.
write_container_commit_notice ๐Ÿ”’
Write the deprecation notice for ostree container commit.