Fix initramfs detection
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user