Module config

Source
Expand description

Provides BootConfig, the configuration file for the bootloader.

This parses space separated key value pairs, the format of which is defined in the BootConfig struct.

The general syntax of the configuration file is not too dissimilar from that of BLS configuration files that come with systemd-boot.

Example configuration:

# Adjusts the time for the default boot option to be picked
timeout 10

# Selects the default boot option through its index on the boot list
default 3

# Change the path where drivers are searched
driver_path /EFI/Drivers

# Enable or disable the builtin editor provided with the default frontend
editor true

# Enable or disable PXE boot discovery
pxe true

# Change the colors of the application
bg magenta
fg light_yellow
highlight_bg gray
highlight_fg black

Frontends are not strictly obligated to honor the theming, default, and timeout settings. They exist as a way to signal user settings to the frontend, and the frontend can choose to implement those settings if needed or possible.

Note that colors are stored as UEFI Color. Therefore, a frontend may need to convert from this color type.

Structsยง

BootConfig
The configuration file for the bootloader.