pub fn make_cmdline_composefs(
id: &str,
insecure: bool,
version: FormatVersion,
algorithm: Algorithm,
) -> StringExpand description
Creates a composefs kernel command line argument string.
§Arguments
id- The composefs object ID as a hex stringinsecure- If true, prepends ‘?’ to make fs-verity verification optionalversion- Which EROFS format version karg to emitalgorithm- 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).