Hi, I’m not the most expert user, but I’ve been messing with my latest linux install for a few months. I costumized the look of the GRUB, but whenever the kernel gets updated and the grub.cfg gets regenerated, the classes of two entries do not generate (efi and submenu), leaving the entries with no icons (which are determined by the class of the entry).

How do I make it so they automatically generate, instead of me modifing the .cfg everytime the kernel is updated?

I’m on linux mint, 21.2 Cinnamon.

  • bizdelnick@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    7 months ago

    Scripts that generate grub.cfg are located in /etc/grub.d/. You can edit them to specify classes. In my system (Debian) entries you ask about are added in /etc/grub.d/10_linux and /etc/grub.d/30_uefi-firmware.

    • RossoErcole@kbin.socialOP
      link
      fedilink
      arrow-up
      0
      ·
      7 months ago

      should I just add the class parameter in these files where it is usually supposed to be, and the files even on updates will not be changed and this will work?

      • bizdelnick@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        7 months ago

        These files are not changed on updates. grub.cfg will be changed, but it will contain what these scripts write into it, so if you add classes to them, they will appear in new grub.cfg.

        To test that everything works as expected, backup your current grub.cfg and run sudo update-grub.