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 forwrite_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