I’m going to have to agree that editing the grub.cfg
file is probably best.
You are correct that is generated by os-prober.
Namely /etc/grub.d/30_os-prober
… which is a pretty complicated file to untangle.
You could theoretically copy it and mess with the menuentry being generated. Somewhere in the lines 160-190 or so.
( also this reminds me to make a PR about the wrong class
s being used, and thus missing icons * )
And your changes will be overwritten at some point, but still, if you must, then editing /boot/grub/grub.cfg
is probably easiest.
You will see something like this:
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows --class os $menuentry_id_option 'osprober-efi-666X-1984' {
savedefault
insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set=root 666X-1984
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
set timeout=10
fi
### END /etc/grub.d/30_os-prober ###
There you can see the text used for the menuentry and you can edit to something like
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 11 (on /dev/nvme0n1p1)' --class windows --class os $menuentry_id_option 'osprober-efi-666X-1984' {
savedefault
insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set=root 666X-1984
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
set timeout=10
fi
### END /etc/grub.d/30_os-prober ###
PS
Correct classes mean more icons
[old image]