Skip to main content

unreferenced_boot_binaries

Function unreferenced_boot_binaries 

Source
fn unreferenced_boot_binaries<'a>(
    boot_binaries: &'a [(BootType, String)],
    bootloader_entries: &[BootloaderEntry],
) -> Vec<&'a (BootType, String)>
Expand description

Find boot binaries on disk that are not referenced by any bootloader entry.

We compare against boot_artifact_name (the directory/file name on disk) rather than fsverity (the composefs= cmdline digest), because a shared entry’s directory name may belong to a different deployment than the one whose composefs digest is in the BLS options line.