extract_vmlinux

Function extract_vmlinux 

Source
pub fn extract_vmlinux(
    packages: &[&Path],
    dest: &Path,
    release: &str,
) -> Result<Option<PathBuf>>
Expand description

Extract debuginfo package(s) into dest — merging onto a kernel tree already materialized there by extract_kernel_packages — and return the vmlinux path they carry, if any.

Split out from extract_kernel_packages so the distro acquisition path can run its config gate on the kernel packages BEFORE fetching the (mandatory, up to ~1 GiB) debuginfo: a kernel that cannot boot under ktstr fails at the gate with no debuginfo bytes crossing the wire. release is the kernel release already discovered from the kernel tree; the lookup uses the same vmlinux candidates extract_kernel_packages checks. A second extraction pass into the same dest is safe — the debuginfo packages only add usr/lib/debug/… paths and are arch-checked like any package.