compute_composefs_digest

Function compute_composefs_digest 

Source
pub(crate) fn compute_composefs_digest(
    path: &Utf8Path,
    write_dumpfile_to: Option<&Utf8Path>,
) -> Result<String>
Expand description

Computes the bootable composefs digest for a filesystem at the given path.

This reads the filesystem from the specified path, transforms it for boot, and computes the composefs image ID.

§Arguments

  • path - Path to the filesystem root to compute digest for
  • write_dumpfile_to - Optional path to write a dumpfile

§Returns

The computed digest as a 128-character hex string (SHA-512).

§Errors

Returns an error if:

  • The path is “/” (cannot operate on active root filesystem)
  • The filesystem cannot be read
  • The transform or digest computation fails