Expand description
Mount helpers for bootc-initramfs
Structsยง
- Args
- Command-line arguments
- Config ๐
- Mount
Attr ๐ - Mount
Config - Configuration for mount operations
- Root
Config ๐
Enumsยง
- Mount
Type - Types of mounts supported by the configuration
Constantsยง
- MOUNT_
ATTR_ ๐RDONLY - SETUP_
ROOT_ CONF_ PATH - Default path to the setup-root configuration file, relative to the booted root.
Functionsยง
- bind_
mount ๐ - build_
overlay_ ๐fd - Build an overlayfs fsmount fd from an existing state dir (upper+work).
- config_
has_ transient_ submounts - Returns
trueif the configuration atpathrequests a transient/etcoverlay. Used by the systemd generator to decide whether to emit the SELinux relabel unit before those mounts exist (the generator runs beforelocal-fs.target). - ensure_
dir ๐ - gpt_
workaround - Workaround for /dev/gpt-auto-root
- mount_
at_ wrapper - Wrapper around [
composefs::mount::mount_at] - mount_
composefs_ image - Prepares a floating mount for composefs and returns the fd
- mount_
setattr ๐ - Set mount attributes using mount_setattr syscall
- mount_
subdir - Mounts a subdirectory with the specified configuration
- mount_
tmpfs_ ๐for_ overlay - Mount a tmpfs to use as the upper layer for an overlay.
- open_
dir - Wrapper around [
rustix::fs::openat] - open_
root_ ๐fs - overlay_
state ๐ - Mount a persistent state directory as an overlay on top of
base, attaching the result immediately at.relative tobase. - overlay_
transient - Creates a transient overlayfs with the passed-in fd as the lowerdir.
- set_
mount_ ๐readonly - Set mount to readonly
- setup_
root - Sets up /sysroot for switch-root