vinceliuice / grub2-themes

Modern Design theme for Grub2
GNU General Public License v3.0
3.41k stars 240 forks source link

Icon Request: Advanced options and UEFI firmware settings #136

Open johndzxu opened 3 years ago

johndzxu commented 3 years ago

Could you add icons for the advanced options and UEFI firmsare settings items in the grub menu? Screenshot

Thanks!👍

vinceliuice commented 3 years ago

There is efi.png in it, but you need to modify your grub.cfg to use it, The default grub configuration file generation script does not provide this option, so these icons will not be displayed, users can only modify the configuration file by yourself

vinceliuice commented 3 years ago

Check this: https://github.com/vinceliuice/grub2-themes/issues/116

vinceliuice commented 3 years ago

You can only do this by yourself

johndzxu commented 3 years ago

@vinceliuice Thanks for your quick reply! As I'm not very familiar with grub and the grub configuration files I'll have to do some research before I can modify them so I won't break my system. Would you think that adding a small section in README about the configuration of these icons is a good idea? (that would certainly be very helpful for noobs like me)

vinceliuice commented 3 years ago

No problem! I'll add that!

johndzxu commented 3 years ago

Thanks!

Brookg commented 2 years ago

This method is only tested on Ubuntu 20.04. Try at your own risk.

Firstly, edit /etc/grub.d/10_linux and change this line

echo "submenu '$(gettext_printf "Advanced options for %s" "${OS}" | grub_quote)' \$menuentry_id_option 'gnulinux-advanced-$boot_device_id' {"

to

echo "submenu '$(gettext_printf "Advanced options for %s" "${OS}" | grub_quote)' --class submenu \$menuentry_id_option 'gnulinux-advanced-$boot_device_id' {"

Secondly, edit /etc/grub.d/30_uefi-firmware and change this line

menuentry '$LABEL' \$menuentry_id_option 'uefi-firmware' {

to

menuentry '$LABEL' --class efi \$menuentry_id_option 'uefi-firmware' {

Finally, run

sudo update-grub

The effect is as follows Grub Hope it helps.

sergiotca commented 2 years ago

@Brookg I was not too keen on messing with my Grub files but my OCD finally won and I ended up following your instructions. Thankfully they worked like a charm. Both "Advance Options" and "UEFI FIrmware Settings" are now showing their icons. BTW I'm double booting Manjaro & Win10. Thank you!