find_image_in_dir

Function find_image_in_dir 

Source
pub fn find_image_in_dir(dir: &Path) -> Option<PathBuf>
Expand description

Find a bootable kernel image within a directory.

Checks the arch-specific build tree path first (arch/x86/boot/bzImage or arch/arm64/boot/Image), then falls back to the directory root (for cache entries that store the boot image directly).