Page 1 of 1
Edit Grub text entries from MX-Boot Options [Solved]
Posted: Tue May 25, 2021 6:37 am
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
Re: Edit Grub text entries from MX-Boot Options
Posted: Tue May 25, 2021 9:30 am
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.
Re: Edit Grub text entries from MX-Boot Options
Posted: Tue May 25, 2021 10:18 am
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.
Re: Edit Grub text entries from MX-Boot Options
Posted: Tue May 25, 2021 1:07 pm
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.
Re: Edit Grub text entries from MX-Boot Options
Posted: Wed Jun 22, 2022 11:44 am
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:
create a new grub.cfg .