Skip to main content

Module cmdline

Module cmdline 

Source
Expand description

Kernel command line parsing and manipulation.

This module provides utilities for parsing and generating kernel command line arguments, with specific support for composefs parameters. It handles the kernel’s simple quoting mechanism and provides functions to extract and create composefs= arguments with optional insecure mode indicators.

Structs§

DigestDescriptor
Parsed format descriptor from a composefs.digest= value.

Enums§

ComposefsCmdline
A composefs kernel argument identifying which EROFS image to mount at boot.

Constants§

KARG_COMPOSEFS_DIGEST
Self-describing kernel argument: composefs.digest=<version>-<hash>-<lg>:<hex>.
KARG_V2
Legacy kernel argument for V2 EROFS: composefs=<hex_digest>.

Functions§

get_cmdline_value
Gets the value of an entry from the kernel cmdline.
make_cmdline_composefs
Creates a composefs kernel command line argument string.
parse_digest_value
Parse a composefs.digest= value like v1-sha256-12:<hex> or v2-sha512-12:<hex>.
split_cmdline
Perform kernel command line splitting.