Skip to main content

prepare_boot_image

Function prepare_boot_image 

Source
pub(crate) fn prepare_boot_image(
    repo: &Arc<Repository<Sha512HashValue>>,
    pull_result: &PullResult<Sha512HashValue>,
) -> Result<BootImage>
Expand description

Generate the boot image, reconstruct the untransformed filesystem for boot entry discovery, and reconcile the generated digest with a UKI, if present.

Keeping this sequence next to the pull paths is important: install and update must not independently generate images or recover a different digest.