get_boot_resources

Function get_boot_resources 

Source
pub fn get_boot_resources<ObjectID: FsVerityHashValue>(
    image: &FileSystem<ObjectID>,
    repo: &Repository<ObjectID>,
) -> Result<Vec<BootEntry<ObjectID>>>
Expand description

Extracts all boot resources from a filesystem image.

Scans the filesystem for all types of boot entries: Type 1 BLS entries in /boot/loader/entries, Type 2 UKIs in /boot/EFI/Linux, and traditional vmlinuz files in /usr/lib/modules.

§Arguments

  • image - The filesystem to scan
  • repo - The composefs repository

§Returns

A vector containing all boot entries found in the filesystem