Module kernel_parameters

Module kernel_parameters 

Source
Expand description

Kernel boot parameter mutations (add, apply, delete) with SBPS iSCSI image projection.

All three mutations share the same two-phase flow:

  1. prepare_kernel_params_changes (crate-private) reads the current /v1/bootparameters records for the target xnames, applies the KernelParamOperation in memory, and records which records changed (so the caller can target the reboot list). For Add/Apply it also walks each unique boot image referenced by an iSCSI-ready boot parameter and resolves it via [futures::future::try_join_all] — the resolved images are the SBPS projection candidates.
  2. apply_kernel_params_changes writes the prepared records back, then patches each images_to_project image so SBPS picks it up.

The split exists so the CLI / HTTP layer can show the operator the exact changeset (and the iSCSI image list) for confirmation before anything is persisted.

Structs§

GetKernelParametersParams
Typed parameters for fetching kernel boot parameters.
KernelParamsChangeset
Result of preparing kernel parameter mutations (before persistence).

Functions§

apply_kernel_params_changes
Write a previously prepared KernelParamsChangeset back to BSS, and patch any SBPS images supplied in images_to_project.
build_images_to_project
Build the SBPS images-to-project map from a kernel params changeset.
get_kernel_parameters
Fetch BSS kernel parameters for the targets described by params.