Skip to main content

make_cmdline_composefs

Function make_cmdline_composefs 

Source
pub fn make_cmdline_composefs(
    id: &str,
    insecure: bool,
    version: FormatVersion,
    algorithm: Algorithm,
) -> String
Expand description

Creates a composefs kernel command line argument string.

§Arguments

  • id - The composefs object ID as a hex string
  • insecure - If true, prepends ‘?’ to make fs-verity verification optional
  • version - Which EROFS format version karg to emit
  • algorithm - The fs-verity algorithm (used to build the V1 value prefix)

§Returns

A string like "composefs.digest=v1-sha512-12:abc123" (V1) or "composefs=abc123" (V2), with optional ? insecure marker for V1 (composefs.digest=?v1-sha512-12:abc123).