Module bootloader

Module bootloader 

Source
Expand description

Bootloader entry parsing and manipulation.

This module provides functionality to parse and manipulate Boot Loader Specification entries and Unified Kernel Images (UKIs). It supports Type 1 BLS entries with separate kernel and initrd files, Type 2 UKI files, and traditional vmlinuz/initramfs pairs from /usr/lib/modules. Key types include BootLoaderEntryFile for parsing BLS configuration files and BootEntry enum for representing different boot entry types.

Structs§

BootLoaderEntryFile
Represents a parsed Boot Loader Specification entry file.
Type1Entry
Represents a Boot Loader Specification Type 1 entry.
Type2Entry
Represents a Boot Loader Specification Type 2 entry (Unified Kernel Image).
UsrLibModulesVmlinuz
Represents a traditional vmlinuz/initramfs pair from /usr/lib/modules.

Enums§

BootEntry
Represents any type of boot entry found in the filesystem.
PEType
Type of Portable Executable (PE) file for boot.

Constants§

EFI_ADDON_DIR_EXT
Directory extension for UKI addon directories
EFI_ADDON_FILE_EXT
File extension for UKI addon files
EFI_EXT
File extension for EFI executables

Functions§

get_boot_resources
Extracts all boot resources from a filesystem image.
strip_ble_key 🔒
Strips the key (if it matches) plus the following whitespace from a single line in a “Type #1 Boot Loader Specification Entry” file.
substr_range 🔒