Skip to main content

pe_output_dir

Function pe_output_dir 

Source
fn pe_output_dir(
    pe_type: &PEType,
    mounted_efi: &Path,
    file_path: &Utf8Path,
    uki_id: &Sha512HashValue,
    is_upgrade: bool,
) -> PathBuf
Expand description

Determines the directory (under mounted_efi) that a PE binary should be written to.

  • A UKI, or an addon scoped to a single UKI, is namespaced under BOOTC_UKI_DIR by the deployment’s verity digest, so it doesn’t collide with other deployments.
  • A global UKI addon applies to every UKI, so it’s written to the shared GLOBAL_UKI_ADDONS_DIR instead.