Skip to main content

Module loader_entries

Module loader_entries 

Source
Expand description

Β§Boot Loader Specification entry management

This module implements support for merging disparate kernel argument sources into the single BLS entry options field. Each source (e.g., TuneD, admin, bootc kargs.d) can independently manage its own set of kernel arguments, which are tracked via x-options-source-<name> extension keys in BLS config files.

See https://github.com/ostreedev/ostree/pull/3570 See https://github.com/bootc-dev/bootc/issues/899

StructsΒ§

SourceName πŸ”’
A validated source name (alphanumeric + hyphens + underscores, non-empty).

ConstantsΒ§

OPTIONS_SOURCE_KEY_PREFIX πŸ”’
The BLS extension key prefix for source-tracked options.

FunctionsΒ§

compute_merged_options πŸ”’
Compute the merged options line from all sources.
extract_source_options_from_bls πŸ”’
Extract source options from BLS entry content. Parses x-options-source-* keys from the raw BLS text since the ostree BootconfigParser doesn’t expose key iteration.
read_bls_entry_for_deployment πŸ”’
Read the BLS entry file content for a deployment from /boot/loader/entries/.
read_staged_bootconfig_extra_sources πŸ”’
Read x-options-source-* keys from the staged deployment data file.
set_options_for_source_staged πŸ”’
Set the kernel arguments for a specific source via ostree staged deployment.