morpheus_bootloader::tui::distro_downloader::commit_download

Function commit_to_download

Source
pub unsafe fn commit_to_download(
    boot_services: *const BootServices,
    image_handle: *mut (),
    screen: &mut Screen,
    config: DownloadCommitConfig,
) -> !
Expand description

Commit to download - this exits boot services and downloads in bare-metal mode.

§POINT OF NO RETURN

Once this function calls ExitBootServices, there’s no going back. The system will either:

  1. Download successfully and reboot
  2. Fail and panic (requires power cycle)

§Arguments

  • boot_services - Pointer to UEFI boot services table
  • image_handle - UEFI image handle
  • screen - Screen for status display (unusable after EBS)
  • config - Download configuration

§Safety

This function will never return on success. On failure, it loops forever.