Skip to main content

Module kernel

Module kernel 

Source
Expand description

Kernel detection for container images.

This module provides functionality to detect kernel information in container images, supporting both traditional kernels (with separate vmlinuz/initrd) and Unified Kernel Images (UKI), and aboot payloads.

StructsΒ§

Kernel πŸ”’
Information about the kernel in a container image.
KernelInternal πŸ”’
Internal-only kernel wrapper with extra path information that are useful but we don’t want to leak out via serialization to inspection.

EnumsΒ§

ContainerImageType πŸ”’
The boot artifact type reported by bootc container inspect.
KernelType πŸ”’
Path to kernel component(s)

ConstantsΒ§

KERNEL_COMPANION_FILES πŸ”’
Files that distributions ship next to vmlinuz in /usr/lib/modules/<kver>/ which belong to that kernel binary, and so must travel with it.

FunctionsΒ§

cmdline_has_composefs πŸ”’
find_aboot_kernel πŸ”’
find_kernel πŸ”’
Find the kernel in a container image root directory.
find_uki_path πŸ”’
Returns the path to the first UKI found in the container root, if any.
get_cmdline_in_addon πŸ”’
has_type1_entries πŸ”’
read_aboot_metadata πŸ”’
split_kernel πŸ”’
Move the kernel out of root into output/<kver>/.
validate_uki_addon_cmdlines πŸ”’
Make sure of the following