• How to add icons to Antergos GRUB menu entries


    Do you like my GRUB menu?

    antergos-grub.jpg

    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! :sunglasses: 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:
    CLASS=$LABEL
    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 :)

    Intel NUC D54250WYK, 16 Gb RAM, 1 Tb SSD
    Multi -boot (no MS-Win &no UEFI) Legacy MBR with GPT

  • 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?:thumbsup:

    1.Antergos Linux KDE plasma / Gnome 2.Ubuntu 17.10 64bit Unity
    Intel Core2 Duo CPU P8400 2.26GHz‖ RAM 3908 MiB ‖ Dell Inc. 0F328M - Dell Inc. Latitude E6500
    Intel Mobile 4 Series Chipset Integrated Graphics [8086:2a42] {i915

  • @anarch said:

    Nice! Maybe this should be posted in the wiki?:thumbsup:

    :heavy_plus_sign: :one: :exclamation: :wink:

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

    Intel NUC D54250WYK, 16 Gb RAM, 1 Tb SSD
    Multi -boot (no MS-Win &no UEFI) Legacy MBR with GPT

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

Posts 7Views 3751
Log in to reply