Editing grub boot menu, how to save?

Bo Berglund bo.berglund at gmail.com
Sat Oct 30 13:20:53 UTC 2021


On Sat, 30 Oct 2021 10:40:54 +0200, g.lip at gmx.com wrote:

>>I just want to change the label so that it is unmistakable *what* is going to
>>boot by that line.
>>Currently my top line only says "Ubuntu" and since there are multiple Ubuntus
>>this is not very user friendly!
>>
>>
>>Any ideas?
>
>
>Go to *all* your Ubuntu OS's and at /etc/lsb-release and /etc/os-release, 
>change DISTRIB_ID and NAME entries to whatever you like to distinguish them apart.
>Then go that Ubuntu OS that you wish to be the grub that boots at start up. 
>Then do 'sudo-update-grub'

THanks, I will surely like to try this out!

Right now the *server* version is booted and I have these files on here:

/etc/os-release (server)
------------------------
NAME="Ubuntu"
VERSION="20.04.3 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.3 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

/etc/lsb-release (server)
-----------------
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.3 LTS"


I mounted the desktop version too so I could read these files from there:


/etc/os-release (desktop)
-------------------------
NAME="Ubuntu"
VERSION="20.04.3 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.3 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal


etc/lsb-release (Desktop)
-------------------------
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.3 LTS"

To me these look pretty much exactly the same....


And these texts do *not* correspond to what is displayed in the boot menu for
the system which is:

Ubuntu  <= desktop version, just this single word
Ubuntu 20.04.3 LTS (20.04) (on /dev/nvme0n1p6) <= server version

Both NAME (in os-release) and DISTRIB_ID (in lsb-release) show up as "Ubuntu"

I cannot reboot now because the server is busy, idle time tomorrow morning from
04:00 to 11:00.


-- 
Bo Berglund
Developer in Sweden





More information about the ubuntu-users mailing list