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.
- Kernel
Internal π - Internal-only kernel wrapper with extra path information that are useful but we donβt want to leak out via serialization to inspection.
EnumsΒ§
- Container
Image πType - The boot artifact type reported by
bootc container inspect. - Kernel
Type π - Path to kernel component(s)
ConstantsΒ§
- KERNEL_
COMPANION_ πFILES - Files that distributions ship next to
vmlinuzin/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
rootintooutput/<kver>/. - validate_
uki_ πaddon_ cmdlines - Make sure of the following