grub2-themes icon indicating copy to clipboard operation
grub2-themes copied to clipboard

Icon Request: Advanced options and UEFI firmware settings

Open johndzxu opened this issue 3 years ago • 8 comments

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

Thanks!👍

johndzxu avatar Aug 18 '21 06:08 johndzxu

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 avatar Aug 18 '21 06:08 vinceliuice

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

vinceliuice avatar Aug 18 '21 06:08 vinceliuice

You can only do this by yourself

vinceliuice avatar Aug 18 '21 06:08 vinceliuice

@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)

johndzxu avatar Aug 18 '21 06:08 johndzxu

No problem! I'll add that!

vinceliuice avatar Aug 18 '21 07:08 vinceliuice

Thanks!

johndzxu avatar Aug 18 '21 10:08 johndzxu

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.

Brookg avatar Sep 30 '21 03:09 Brookg

@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!

sergiotca avatar Dec 04 '21 02:12 sergiotca