Edit Grub text entries from MX-Boot Options  [Solved]

For developer discussion on package requests
Message
Author
Senpai
Posts: 494
Joined: Tue Nov 19, 2019 7:39 am

Edit Grub text entries from MX-Boot Options  [Solved]

#1 Post by Senpai »

Hi:
Grub Customizer, has the option to rename/customize Grub text entries.
My question is if that option could be added to MX-Boot Options, I think it is the only thing that this great tool is missing.
Best regards from Senpai

User avatar
fehlix
Developer
Posts: 12799
Joined: Wed Apr 11, 2018 5:09 pm

Re: Edit Grub text entries from MX-Boot Options

#2 Post by fehlix »

Grub menu entries titles get generated by "update-grub" (grub-mkconfig).
One way to adjust the generated titles would be to modify the source where grub-mkconfg ( and os-prober)
get the titel names from, which are two lines within /etc/lsb-release:
PRETTY_NAME=
DISTRIB_DESCRIPTION=
E.g on my MX AHS installes I have adjusted to:

Code: Select all

PRETTY_NAME="MX 19.4 AHS patito feo"
DISTRIB_DESCRIPTION="MX 19.4 AHS patito feo"
and on KDE to

Code: Select all

PRETTY_NAME="MX 19.4 KDE patito feo"
DISTRIB_DESCRIPTION="MX 19.4 KDE patito feo"
Within the generated grub.cfg, the shown entries do have now different titles for the different installations.

Senpai
Posts: 494
Joined: Tue Nov 19, 2019 7:39 am

Re: Edit Grub text entries from MX-Boot Options

#3 Post by Senpai »

fehlix wrote: Tue May 25, 2021 9:30 am Grub menu entries titles get generated by "update-grub" (grub-mkconfig).
One way to adjust the generated titles would be to modify the source where grub-mkconfg ( and os-prober)
get the titel names from, which are two lines within /etc/lsb-release:
PRETTY_NAME=
DISTRIB_DESCRIPTION=
E.g on my MX AHS installes I have adjusted to:

Code: Select all

PRETTY_NAME="MX 19.4 AHS patito feo"
DISTRIB_DESCRIPTION="MX 19.4 AHS patito feo"
and on KDE to

Code: Select all

PRETTY_NAME="MX 19.4 KDE patito feo"
DISTRIB_DESCRIPTION="MX 19.4 KDE patito feo"
Within the generated grub.cfg, the shown entries do have now different titles for the different installations.
Thank you fehlix, I'll do it like this, I have 3 MX installations on my two PCs and sometimes it's a mess to boot :), So I have to modify "lsb-release" on each installation?, but I still think it would be a good option for MX-Boot Options.

User avatar
fehlix
Developer
Posts: 12799
Joined: Wed Apr 11, 2018 5:09 pm

Re: Edit Grub text entries from MX-Boot Options

#4 Post by fehlix »

Senpai wrote: Tue May 25, 2021 10:18 am So I have to modify "lsb-release" on each installation?, but I still think it would be a good option for MX-Boot Options.
Yes, do only adjust the two lines mentioned within /etc/lsb-release and run afterwards update-grub.
Do this for all 3 installations including running update-grub. And as the last step do re-generate again the grub-menu (update-grub) on the installation, which does provide the "controlling" grub, the one with the first menu-entry shown in the boot-menu. update-grub will pickup through os-prober the adjusted names from the other installations.

taraxacum
Posts: 81
Joined: Fri Dec 14, 2018 6:24 pm

Re: Edit Grub text entries from MX-Boot Options

#5 Post by taraxacum »

Senpai wrote: Tue May 25, 2021 6:37 am Hi:
Grub Customizer, has the option to rename/customize Grub text entries.
My question is if that option could be added to MX-Boot Options, I think it is the only thing that this great tool is missing.
Best regards from Senpai
Check out my solution, maybe my post will help you.

https://forum.mxlinux.org/viewtopic.php?t=69768
https://forum.mxlinux.org/viewtopic.php?t=69883

I also used Grub Customizer initially, but I don't use it anymore. I am using MX boot options.

With Terminal typing:

Code: Select all

sudo update-grub
create a new grub.cfg .

Post Reply

Return to “Package Requests / Status”