pub fn acquire_distro_kernel(
kind: DistroKind,
release: Option<&str>,
cli_label: &str,
mp: Option<&FetchProgress>,
) -> Result<PathBuf>Expand description
Acquire a prebuilt distro kernel (--kernel fedora / ubuntu /
amazonlinux, with optional pinned release) into the cache and
return its cache-entry directory.
Resolves repo metadata, composes the cache key, and on a hit returns immediately. On a miss: downloads the kernel image/modules packages with sha256 verification, checks each against the host arch, extracts, and runs the config gate + boot-module selection — all BEFORE fetching the debuginfo, so an unsupported kernel fails without any (up to ~1 GiB) debuginfo bytes crossing the wire. Only once the gate passes does it download + extract the debuginfo, merge its vmlinux, and install atomically. Debuginfo is mandatory for every distro whose repos publish it (the resolvers fail hard on a missing package); a distro that publishes none (SteamOS) resolves with an empty debuginfo set and proceeds with a warning naming what degrades.