Skip to main content

Module ostree_prepareroot

Module ostree_prepareroot 

Source
Expand description

Logic related to parsing ostree-prepare-root.conf.

Enums§

ComposefsState
The state of a composefs for ostree
Tristate
An option which can be enabled, disabled, or possibly enabled.

Constants§

COMPOSEFS_IMAGE
The composefs image ostree writes into each deployment directory, which ostree-prepare-root mounts as the root filesystem.
CONF_PATH
The relative path to ostree-prepare-root’s config.

Functions§

composefs_state_in_config
Parse composefs.enabled, returning None if it is not set.
load_config
Load the ostree prepare-root config from the given ostree repository.
load_config_from_root
Load the configuration from the target root.
mount_composefs
Mount a deployment’s composefs image the way ostree-prepare-root does in the initramfs: an overlayfs of COMPOSEFS_IMAGE whose file content comes from the repository’s objects directory.
overlayfs_enabled_in_config
Query whether the config uses an overlayfs model (composefs or plain overlayfs).
overlayfs_root_enabled
Query whether the target root has the root.transient key which sets up a transient overlayfs.
require_config_from_root
Require the configuration in the target root.