From 3715ca04466dfa120e18650d2c481f40d2066ca9 Mon Sep 17 00:00:00 2001 From: Vaughn Varma Date: Wed, 24 Sep 2026 11:11:00 +0000 Subject: [PATCH] grub.d/10_linux.in: add oe's kernel name Modified from Khem Raj's (raj.khem@gmail.com) original script (find alongside the .bb file for grub) to include "Image" files. Also removed hyphens to handle situations where e.g. bzImage is the only kernel file (no bzImage-distro-name etc) Original description below: Our kernel's name is bzImage, we need add it to grub.d/10_linux.in so that the grub-mkconfig and grub-install can work correctly. We only need add the bzImage to util/grub.d/10_linux.in, but also add it to util/grub.d/20_linux_xen.in to keep compatibility. Upstream-Status: Inappropriate [OE specific] --- util/grub.d/10_linux.in | 6 +++--- util/grub.d/20_linux_xen.in | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in index 07649cd..d5ec745 100644 --- a/util/grub.d/10_linux.in +++ b/util/grub.d/10_linux.in @@ -166,12 +166,12 @@ machine=`uname -m` case "x$machine" in xi?86 | xx86_64) list= - for i in /boot/vmlinuz-* /vmlinuz-* /boot/kernel-* ; do + for i in /boot/Image* /boot/bzImage* /Image* /bzImage* /boot/vmlinuz* /vmlinuz* /boot/kernel* ; do if grub_file_is_not_garbage "$i" ; then list="$list $i" ; fi done ;; - *) + *) list= - for i in /boot/vmlinuz-* /boot/vmlinux-* /vmlinuz-* /vmlinux-* /boot/kernel-* ; do + for i in /boot/Image* /boot/bzImage* /boot/vmlinuz* /boot/vmlinux* /bzImage* /vmlinuz* /vmlinux* /boot/kernel-* ; do if grub_file_is_not_garbage "$i" ; then list="$list $i" ; fi done ;; esac diff --git a/util/grub.d/20_linux_xen.in b/util/grub.d/20_linux_xen.in index 27bff00..6cc7bfc 100644 --- a/util/grub.d/20_linux_xen.in +++ b/util/grub.d/20_linux_xen.in @@ -181,7 +181,7 @@ EOF } linux_list= -for i in /boot/vmlinu[xz]-* /vmlinu[xz]-* /boot/kernel-*; do +for i in /boot/Image* /Image* /boot/bzImage[xz]* /bzImage[xz]* /boot/vmlinu[xz]* /vmlinu[xz]* /boot/kernel*; do if grub_file_is_not_garbage "$i"; then basename=$(basename $i) version=$(echo $basename | sed -e "s,^[^0-9]*-,,g")