Module store

Module store 

Source
Expand description

The [Store] holds references to three different types of storage:

ยงOSTree

The default backend for the bootable container store; this lives in /ostree in the physical root.

ยงcontainers-storage:

Later, bootc gained support for Logically Bound Images. This is a containers-storage: instance that lives in /ostree/bootc/storage

ยงcomposefs

This lives in /composefs in the physical root.

Structsยง

BootedComposefs
Represents a composefs-based boot environment
BootedOstree
Represents an ostree-based boot environment
BootedStorage ๐Ÿ”’
Storage accessor for a booted system.
CachedImageStatus ๐Ÿ”’
Cached image status data used for optimization.
Storage ๐Ÿ”’
A reference to a physical filesystem root, plus accessors for the different types of container storage.

Enumsยง

BootedStorageKind ๐Ÿ”’
A system can boot via either ostree or composefs; this enum allows code to handle both cases while maintaining type safety.
Environment ๐Ÿ”’
Discriminated union representing the boot storage backend.

Constantsยง

BOOTC_ROOT ๐Ÿ”’
The path to the bootc root directory, relative to the physical system root
COMPOSEFS
The toplevel composefs directory path
COMPOSEFS_MODE
SYSROOT
Path to the physical root

Functionsยง

get_physical_root_and_run ๐Ÿ”’
Open the physical root (/sysroot) and /run directories for a booted system.

Type Aliasesยง

ComposefsFilesystem
ComposefsRepository
See https://github.com/containers/composefs-rs/issues/159