morpheus_network::mainloop::bare_metal

Function finalize_manifest

Source
unsafe fn finalize_manifest(
    blk_driver: &mut VirtioBlkDriver,
    config: &BareMetalConfig,
    total_bytes: u64,
) -> bool
Expand description

Create and write a completed ISO manifest to disk.

Called after HTTP download completes to record the ISO location.1G

ยงStrategy

  • If esp_start_lba > 0: Write to FAT32 ESP at /.iso/<name>.manifest
  • Else if manifest_sector > 0: Write to raw sector (legacy)
  • Else: Skip manifest writing