morpheus_bootloader::tui::distro_downloader::manifest_io

Function persist_manifest

Source
pub unsafe fn persist_manifest(
    bs: &BootServices,
    image_handle: *mut (),
    manifest: &IsoManifest,
) -> Result<(), ManifestIoError>
Expand description

Persist a manifest to the ESP filesystem

Creates the manifest directory if it doesn’t exist, then writes the serialized manifest to /.iso/<CRC32-hash>.MFS.

§Arguments

  • bs - UEFI Boot Services
  • image_handle - Current image handle
  • manifest - The manifest to persist

§Returns

  • Ok(()) on success
  • Err(ManifestIoError) on failure