Skip to main content

Crate bootc_initramfs_setup

Crate bootc_initramfs_setup 

Source
Expand description

Mount helpers for bootc-initramfs

Structsยง

Args
Command-line arguments
Config ๐Ÿ”’
MountAttr ๐Ÿ”’
MountConfig
Configuration for mount operations
RootConfig ๐Ÿ”’

Enumsยง

MountType
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 true if the configuration at path requests a transient /etc overlay. Used by the systemd generator to decide whether to emit the SELinux relabel unit before those mounts exist (the generator runs before local-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 to base.
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