• How to add icons to Antergos GRUB menu entries

    Do you like my GRUB menu?


    I like the Antergos grub theme, but it only shows the antergos logo by default. As I like to test a lot of different distros, I googled for a simple way to add an icon for the other OSs, but it seems no one is interested. Even the Arch wiki has a GRUB/Tips and tricks page, but I didn’t find any tip on this. May be arch guys are too busy installing and tweaking their system. But we Antergos users have more time for fun, since we got the job done by cnchi! 😎 Antergos devs are so nice, they did a beautiful theme for GRUB. The icons for the other OSs are even included, check /boot/grub/themes/Antergos-Default/icons/, you can add more as png images.
    Here’s what I did to show the OS icon next to its grub menu entry, after some infos grabbed from different askubuntu questions and a few openSUSE forum posts. (Using GRUB mbr legacy).
    First, it’s a wise idea to make a backup of an important file:
    sudo cp /etc/grub.d/30_os-prober /etc/grub.d/backup-of-30_os-prober
    Then open this file and modify it as follows:
    sudo gedit /etc/grub.d/30_os-prober
    Find the line:
    export TEXTDOMAINDIR="${datarootdir}/locale"
    Add the line:
    declare -l CLASS
    Find the line:
    BOOT="`echo ${OS} | cut -d ':' -f 4`"
    Add the line:
    Find all occurences of:
    --class gnu-linux
    Replace with:
    --class ${CLASS} --class gnu-linux
    Now check that the icons names in folder /boot/grub/themes/Antergos-Default/icons/ match the “–class” name of each “menuentry”. To do this, open the file grub.cfg, but do not modify it:
    sudo gedit /boot/grub/grub.cfg
    For example, if the entry for Ubuntu MATE has the class name “ubuntu1”, then the icon for MATE, has to be named “ubuntu1.png”.
    Finish with a grub update:
    sudo grub-mkconfig -o /boot/grub/grub.cfg
    reboot and enjoy your new Antergos menu :)

  • Thank you. I do not have the time to do this but at least I get a better idea about how to handle grub. Thank you for this.

  • @ant77 said:

    Do you like my GRUB menu?..

    no. sorry.

    prefer to use grub 1.

  • Nice! Maybe this should be posted in the wiki?👍

  • @anarch said:

    Nice! Maybe this should be posted in the wiki?👍

    ➕ 1⃣ ❗ 😉

  • Done! it’s on the wiki :) very happy to contribute. 👍

  • Please can you make a example with Windows icon in menu?

Posts 7Views 6342
Log in to reply
Bloom Email Optin Plugin

Looks like your connection to Antergos Community Forum was lost, please wait while we try to reconnect.