Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello,
how do i change the "-class" in the GRUB2 boot loader?
The "--class" shows wrong pictures, operating systems are not correctly recognized by the GRUB2. I would also like to insert a picture (--class) in the submenu, BIOS/UEFI-menu and remove some of the "--class" entries.
Code:
menuentry "Kubuntu 20.04 - GNU/Linux (kernel-5.4.0.42-generic)" --class ubuntu --class gnu-linux --class gnu --class os
Thank you,
I have this GNU GRUB Manual 2.04 in .pdf.
I don't want to learn GRUB I just want to add or change this one command (class). That's why I'm asking here.
to the "/etc/default/grub" and edit it to get the variable in "/boot/grub/grub.conf" after "update-grub".
What do I have to change now to get the desired result?
I have "Kubuntu OS" and I liked that the right picture is shown in the menu (kubuntu.png).
to the "/etc/default/grub" and edit it to get the variable in "/boot/grub/grub.conf" after "update-grub".
No.
You don't edit /boot/grub/grub.cfg manually.
Please check all the variables you can add to /etc/default/grub.
Also check the man pages for grub-mkconfig and/or grub2-mkconfig and/or update-grub.
I don't use grub anymore, so I can't check myself.
No.
You don't edit /boot/grub/grub.cfg manually.
Please check all the variables you can add to /etc/default/grub.
I believe that you have to edit grub.cfg manually to change the --class options. Or at least the files in /etc/grub.d. I didn't see anything in /etc/default/grub that impacts class.
Depending on the distro and the type of BIOS, grub.cfg might not be in /boot/grub.
Last edited by berndbausch; 08-01-2020 at 10:42 PM.
I believe that you have to edit grub.cfg manually to change the --class options. Or at least the files in /etc/grub.d. I didn't see anything in /etc/default/grub that impacts class
Yes that's right. The problem is that after every kernel upgrade
Code:
update-grub
is executed, the grub.cfg gets reseted and I have to edit the grub.cfg again.
After executing
Code:
update-grub
I would like to have the right images at the right place automatically.
That's because you're not supposed to edit that file directly.
Some distributions don't update-grub on kernel upgrade, but instead simply symlink the new kernel where the old one used to be.
In which case, there's nothing wrong with editing that file directly. It'll still work as a static file just like menu.lst or lilo.conf.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.