When you insert the installation CD, an architecture entry of 386 or x64 is displayed.
However, after completing the installation of multiple distributions, this architecture information is not displayed in the Grub main menu.
Then the question arises, which of the distro's is the 386 version and which is the x64 version?
https://forum.mxlinux.org/viewtopic.php ... 20#p680420
Furthermore, I miss the possibility to put an explanatory individual text in front of each distro in the Grub main menu.
So far I have written this text entry manually in the /boot/grub/grub.cfg file for the sake of a better overview. This is very time consuming as my entry gets overwritten and disappears with every Grub update. This process could be automated.
With this wishful thinking, I turned to the developers and, with their support (by Fehlix), have now worked out the following solution that solves the problem:
And now, dear reader!
So that you don't have to read all 30 posts and get bored, I would like to give a short version of the working solution here.
If several distributions are installed on one hard disk, a clear arrangement results:
Step 1:
In all BELOWER distributions I only edit the /etc/lsb-release file:
Prefixed with my desired text. After that, I add the architecture entry manually in square brackets.
(German keyboard AltGr key + key 8 and key 9).
For reading out in the respectively started system I use terminal with entry:
dpkg --print-architectue.
After a few seconds, the read value i386 or amd64 is displayed, which I then write in the brackets:
Code: Select all
DISTRIB_DESCRIPTION="Text-1 -MX 21 Wildflower [ ]"
Step 2:
In the (first installed) controlling TOP distribution, I only edit the /etc/default/grub file:
The PRETTY_NAME value remains unchanged:
GRUB_DISTRIBUTOR="$(unset PRETTY_NAME; (. /etc/lsb-release; echo ${PRETTY_NAME:?}) 2>/dev/null || echo Debian) "
and I add four NEW lines after this line:
Code: Select all
MY_GRUBMENU_TEXT="Text-4"
MY_GRUBMENU_ARCH="$(dpkg --print-architecture)"
MY_DISTRIBUTOR="GRUB_DISTRIBUTOR"
eval $MY_DISTRIBUTOR=" '$MY_GRUBMENU_TEXT - $GRUB_DISTRIBUTOR [$MY_GRUBMENU_ARCH]' "
Between the superscript double dashes "
the new MY_statement is placed with a superscript single apostrophe ' in between.
In each individual distribution - starting from the bottom up - I update a new Grub.cfg file (possibly with root or password input) in the terminal: sudo update-grub.
Provided grub is installed in a separate MBR boot partition, the TOP display of the first distro will always remain the same with the same /etc/default/grub file. With each newly added distro, Grub is installed in the respective root partition (PBR) then only the respective file /etc/lsb-release is edited.
(I prefer this).
If Grub is not installed in a separate boot partition, but is installed in every root partition, the previous TOP distribution is converted into a BELOW distribution with each new installation that is added (the most recently installed distro is always at the top). As a result, the 4 additional lines from the /etc/default/grub file must be implemented accordingly - as must the /etc/lsb-release file.
I wish you the best of luck with your imitation.
Related links on this topic might be worth reading:
Code: Select all
https://www.howtogeek.com/196655/how-to-configure-the-grub2-boot-loaders-settings/