Expand description
Logic related to parsing ostree-prepare-root.conf.
Enums§
- Composefs
State - 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, returningNoneif 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_IMAGEwhose file content comes from the repository’sobjectsdirectory. - 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.transientkey which sets up a transient overlayfs. - require_
config_ from_ root - Require the configuration in the target root.