blob: 69dec7695a6e452ec97f47dbc67edfdfcc72d308 [file] [log] [blame]
Patrick Williamsf52e3dd2024-01-26 13:04:43 -06001From a80592e20f6c4b928a22862f52f268ab9d9908b2 Mon Sep 17 00:00:00 2001
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05002From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 13 Jan 2016 19:28:00 +0000
4Subject: [PATCH] grub.d/10_linux.in: add oe's kernel name
5
6Our kernel's name is bzImage, we need add it to grub.d/10_linux.in so
7that the grub-mkconfig and grub-install can work correctly.
8
9We only need add the bzImage to util/grub.d/10_linux.in, but also add it
10to util/grub.d/20_linux_xen.in to keep compatibility.
11
12Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
Brad Bishop08902b02019-08-20 09:16:51 -040014
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050015Upstream-Status: Inappropriate [OE specific]
16
Brad Bishop08902b02019-08-20 09:16:51 -040017---
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050018 util/grub.d/10_linux.in | 6 +++---
19 util/grub.d/20_linux_xen.in | 2 +-
20 2 files changed, 4 insertions(+), 4 deletions(-)
21
22diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
Patrick Williamsf52e3dd2024-01-26 13:04:43 -060023index cc393be..8545cb6 100644
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050024--- a/util/grub.d/10_linux.in
25+++ b/util/grub.d/10_linux.in
Patrick Williamsf52e3dd2024-01-26 13:04:43 -060026@@ -166,12 +166,12 @@ machine=`uname -m`
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050027 case "x$machine" in
28 xi?86 | xx86_64)
29 list=
30- for i in /boot/vmlinuz-* /vmlinuz-* /boot/kernel-* ; do
31+ for i in /boot/bzImage-* /bzImage-* /boot/vmlinuz-* /vmlinuz-* /boot/kernel-* ; do
32 if grub_file_is_not_garbage "$i" ; then list="$list $i" ; fi
33 done ;;
34- *)
35+ *)
36 list=
37- for i in /boot/vmlinuz-* /boot/vmlinux-* /vmlinuz-* /vmlinux-* /boot/kernel-* ; do
38+ for i in /boot/bzImage-* /boot/vmlinuz-* /boot/vmlinux-* /bzImage-* /vmlinuz-* /vmlinux-* /boot/kernel-* ; do
39 if grub_file_is_not_garbage "$i" ; then list="$list $i" ; fi
40 done ;;
41 esac
42diff --git a/util/grub.d/20_linux_xen.in b/util/grub.d/20_linux_xen.in
Patrick Williamsf52e3dd2024-01-26 13:04:43 -060043index 94dd8be..36cd554 100644
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050044--- a/util/grub.d/20_linux_xen.in
45+++ b/util/grub.d/20_linux_xen.in
Patrick Williamsf52e3dd2024-01-26 13:04:43 -060046@@ -181,7 +181,7 @@ EOF
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050047 }
48
49 linux_list=
50-for i in /boot/vmlinu[xz]-* /vmlinu[xz]-* /boot/kernel-*; do
51+for i in /boot/bzImage[xz]-* /bzImage[xz]-* /boot/vmlinu[xz]-* /vmlinu[xz]-* /boot/kernel-*; do
52 if grub_file_is_not_garbage "$i"; then
53 basename=$(basename $i)
54 version=$(echo $basename | sed -e "s,^[^0-9]*-,,g")