find_kernel

Function find_kernel 

Source
pub(crate) fn find_kernel(root: &Dir) -> Result<Option<Kernel>>
Expand description

Find the kernel in a container image root directory.

This function first attempts to find a UKI in /boot/EFI/Linux/*.efi. If that doesn’t exist, it falls back to looking for a traditional kernel layout with /usr/lib/modules/<version>/vmlinuz.

Returns None if no kernel is found.