extract_kernel_packages

Function extract_kernel_packages 

Source
pub fn extract_kernel_packages(
    packages: &[&Path],
    dest: &Path,
) -> Result<ExtractedKernel>
Expand description

Extract one or more kernel packages into dest and locate the bootable artifacts.

Multiple packages are merged into a single tree under dest (Ubuntu’s split image/modules debs, or a Fedora kernel plus its debuginfo). Every package is checked against the host architecture before extraction. The kernel release is derived from the merged tree and it is an error for the packages to disagree on it.