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§
- Boot
Loader Entry File - Represents a parsed Boot Loader Specification entry file.
- Type1
Entry - Represents a Boot Loader Specification Type 1 entry.
- Type2
Entry - Represents a Boot Loader Specification Type 2 entry (Unified Kernel Image).
- UsrLib
Modules Vmlinuz - Represents a traditional vmlinuz/initramfs pair from /usr/lib/modules.
Enums§
- Boot
Entry - 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 🔒