diff --git a/pkg.info b/pkg.info index d21156c..8fa91c0 100644 --- a/pkg.info +++ b/pkg.info @@ -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 diff --git a/source-files/fix-initramfs-detection.patch b/source-files/fix-initramfs-detection.patch new file mode 100644 index 0000000..480db91 --- /dev/null +++ b/source-files/fix-initramfs-detection.patch @@ -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}" + diff --git a/source.sh b/source.sh index 18c946c..48822ca 100644 --- a/source.sh +++ b/source.sh @@ -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