fehlix wrote: Tue May 10, 2022 7:07 pmOK, I may now see what your are trying to achieve.taraxacum wrote: Tue May 10, 2022 4:35 pm Unfortunately, you are making a mistake in reasoning, so I repeat my steps:
...
You obviously don't use grub customizers to update grub.cfg - so question, what command do you type in a terminal with root privileges SUDO ?
To your last question:
To manually generate the GRUB menu (which is the file /boot/grub/grub.cfg)
you can run this command from the terminal command line:which may require to enter your password (not shown on the screen) followed by pressing [Enter].Code: Select all
sudo update-grub
And you are right these three parameters:
PRETTY_NAME, DISTRIB_DESCRIPTION (found in /etc/lsb-release)
and
GRUB_DISTRIBUTOR (found with /etc/default/grub)
are used by update-grub to "construct" the displayed GRUB menu entries.
In addition, the displayed GRUB menu entries consist out of
* "TOP" entries for the current running system
and
* "BELOW" entries for the other installed system.
For the TOP entries, the displayed name is taken from PRETTY_NAME parameter.
This is true for all TOP-entries: The first menu entry and the "advanced" submenu entry
and the entries within the advanced submenu itself.
It is different for all "BELOW" entries:
Within the "BELOW" entries: For the first menu entry + advanced submenu entry
the display name is taken from DISTRIB_DESCRIPTION found with the others
system /etc/lsb-release.
Only the entries within the advanced submenu itself are taken from PRETTY_NAME
of the other lsb-release file (after update-grub have been run with the other system.)
And as you found out GRUB_DISTRIBUTOR within /etc/default/grub is
reset to the original value after point release, which is done
through an update of the package mx-system.
The update of mx-system package will try to replace the original name
with the new point release name.
E.g it will change
PRETTY_NAME="MX 21 Wildflower" to PRETTY_NAME="MX 21.1 Wildflower"
or
PRETTY_NAME="MX 21.1 Wildflower" to PRETTY_NAME="MX 21.2 Wildflower"
Now, in order to let mx-system update PRETTY_NAME with the new values of the version,
you can do the following:
Do not change PRETTY_NAME in /etc/lsb-release
But add this line at the end of /etc/default/grub
(note the single and double quotes!)Code: Select all
eval GRUB_''DISTRIBUTOR="'fehlix: $GRUB_DISTRIBUTOR'"
where you change "fehlix:" with your own text.
This line will make sure the GRUB_DISTRIBUTOR replacement
during point release update can be done
and
you'r own text will survive the point-release and will be shown within the GRUB menu, where
PRETTY_NAME is relevant, with the update content of PRETTY_NAME.
[/code]
I followed your instruction and added your line at the end.
Result are error messages:
/usr/sbin/grub-mkconfig: 41: /etc/default/grub: Syntax error: EOF in backquote substitution