Expand description
Root filesystem management for Microsandbox sandboxes.
This module provides functionality for managing root filesystems used by Microsandbox sandboxes. It handles the creation, extraction, and merging of filesystem layers following OCI (Open Container Initiative) specifications.
Constants§
- OPAQUE_
WHITEOUT_ MARKER - The opaque directory marker file name used in OCI layers.
- WHITEOUT_
PREFIX - The prefix for whiteout files in OCI layers.
Functions§
- copy_
dir_ recursive - Recursively copies a directory from source to destination, preserving file permissions.
- patch_
with_ default_ dns_ settings - Updates the /etc/resolv.conf file in the guest rootfs to add default DNS servers if none exist. Creates the file if it doesn’t exist.
- patch_
with_ sandbox_ scripts - Updates a rootfs by adding sandbox script files to a
/.sandbox_scriptsdirectory. - patch_
with_ stat_ override - Sets the user.containers.override_stat xattr on the rootfs directory.
- patch_
with_ virtiofs_ mounts - Updates the /etc/fstab file in the guest rootfs to mount the mapped directories. Creates the file if it doesn’t exist.