Fix initramfs detection
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
name: grub
|
name: grub
|
||||||
description: The GRand Unified Bootloader
|
description: The GRand Unified Bootloader
|
||||||
version: "2.12"
|
version: "2.12"
|
||||||
revision: 9
|
revision: 10
|
||||||
url: https://www.gnu.org/software/grub/
|
url: https://www.gnu.org/software/grub/
|
||||||
license: GPL3-or-later
|
license: GPL3-or-later
|
||||||
architecture: any
|
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}"
|
||||||
|
|
||||||
@@ -7,6 +7,9 @@
|
|||||||
prepare() {
|
prepare() {
|
||||||
# Decompress unifont file to source directory
|
# Decompress unifont file to source directory
|
||||||
gunzip -c unifont.bdf.gz > "$BPM_SOURCE"/unifont.bdf
|
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
|
# The build function is executed in the source directory
|
||||||
|
|||||||
Reference in New Issue
Block a user