Expand description
Kernel boot parameter mutations (add, apply, delete) with SBPS iSCSI image projection.
All three mutations share the same two-phase flow:
prepare_kernel_params_changes(crate-private) reads the current/v1/bootparametersrecords for the target xnames, applies theKernelParamOperationin memory, and records which records changed (so the caller can target the reboot list). ForAdd/Applyit 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.apply_kernel_params_changeswrites the prepared records back, then patches eachimages_to_projectimage 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§
- GetKernel
Parameters Params - Typed parameters for fetching kernel boot parameters.
- Kernel
Params Changeset - Result of preparing kernel parameter mutations (before persistence).
Functions§
- apply_
kernel_ params_ changes - Write a previously prepared
KernelParamsChangesetback to BSS, and patch any SBPS images supplied inimages_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.