Fix initramfs detection

This commit is contained in:
2026-01-03 09:23:30 +02:00
parent 4677e8df1a
commit 7bc1279d60
3 changed files with 17 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
name: grub
description: The GRand Unified Bootloader
version: "2.12"
revision: 9
revision: 10
url: https://www.gnu.org/software/grub/
license: GPL3-or-later
architecture: any
@@ -0,0 +1,13 @@
diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
index cc393be7e..8bc407a9a 100644
--- a/util/grub.d/10_linux.in
+++ b/util/grub.d/10_linux.in
@@ -210,7 +210,7 @@ for linux in ${reverse_sorted_list}; do
basename=`basename $linux`
dirname=`dirname $linux`
rel_dirname=`make_system_path_relative_to_its_root $dirname`
- version=`echo $basename | sed -e "s,^[^0-9]*-,,g"`
+ version=`echo $basename | sed -e "s/vmlinuz-//g"`
alt_version=`echo $version | sed -e "s,\.old$,,g"`
linux_root_device_thisversion="${LINUX_ROOT_DEVICE}"
+3
View File
@@ -7,6 +7,9 @@
prepare() {
# Decompress unifont file to source directory
gunzip -c unifont.bdf.gz > "$BPM_SOURCE"/unifont.bdf
cd "$BPM_SOURCE"
patch -Np1 -i "$BPM_WORKDIR"/fix-initramfs-detection.patch
}
# The build function is executed in the source directory