Hier ein Patch für
/etc/grub.d/10_linux, der die Kernelversion aus dem Kernel Image ausliest.
Keine Garantie, keine Haftung...
--- /etc/grub.d/10_linux 2018-05-23 12:28:54.904969239 +0200
+++ 10_linux 2018-05-23 12:30:47.702495607 +0200
@@ -190,7 +190,7 @@
basename=`basename $linux`
dirname=`dirname $linux`
rel_dirname=`make_system_path_relative_to_its_root $dirname`
- version=`echo $basename | sed -e "s,vmlinuz-,,g"`
+ version=`file $linux | cut -d " " -f 9`
alt_version=`echo $version | sed -e "s,\.old$,,g"`
linux_root_device_thisversion="${LINUX_ROOT_DEVICE}"
Sowie
/usr/share/libalpm/hooks/grub.hook zum automatischen Update:
[Trigger]
Type = File
Operation = Install
Operation = Upgrade
Target = boot/vmlinuz-linux
[Action]
Description = Updating grub configuration...
When = PostTransaction
Exec = /usr/bin/grub-mkconfig -o /boot/grub/grub.cfg