grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Messed up entries when 90fallback from linux-boot-prober is used


From: Samuel Rakitničan
Subject: Messed up entries when 90fallback from linux-boot-prober is used
Date: Sat, 15 Jul 2017 10:18:52 +0200

Hi!,

I have few Fedora installs where there is no grub installed, in this
case 30_os-prober probes the partition with the help of
linux-boot-prober.


Issue #1
The issue is that entries coming from linux-boot-prober are in random
order and grub2 just uses it as is. What happens is that newest kernel
does not make it in main menu as the kernels order are random.
Attached patch should fix that (it does for me).


Issue #2
In this same scenario, menu entries gets the same title for every
kernel entry that comes from ${LONGNAME}, since ${LLABEL} is not
present. It would be nice to implement kernel version somehow, but I
am not sure what would be the best approach that works for everything.

Output from linux-boot-prober:
/dev/sdb5:/dev/sdb5::/boot/vmlinuz-4.10.0-0.rc2.git2.1.fc26.x86_64:/boot/initramfs-4.10.0-0.rc2.git2.1.fc26.x86_64.img:root=/dev/sdb5
/dev/sdb5:/dev/sdb5::/boot/vmlinuz-4.11.0-2.fc26.x86_64:/boot/initramfs-4.11.0-2.fc26.x86_64.img:root=/dev/sdb5
/dev/sdb5:/dev/sdb5::/boot/vmlinuz-4.9.0-0.rc0.git7.1.fc26.x86_64:/boot/initramfs-4.9.0-0.rc0.git7.1.fc26.x86_64.img:root=/dev/sdb5

I was thinking of trimming the data coming from linux-boot-prober, in
particular ${LKERNEL} variable and implementing it with the menu entry
title, similarly like it is done for main system. Depending on variety
of distributions, this may be difficult to implement that works
consistently for all cases, not sure. But in the end it may be the
simplest to just add the whole content of ${LKERNEL} to the end of
title. Any thoughts?


Regards,

Samuel Rakitničan

Attachment: Fix-kernels-ordering-with-linux-boot-prober.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]