grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: need hostname on menu


From: J.Witvliet
Subject: Re: need hostname on menu
Date: Sun, 24 Jan 2021 08:45:22 +0000

No, that would still be not enough:
Imagine installing centOS 3 times, one with gnome-desktop, one with kde-desktop, and one with yet another variant, but all using the same OS-release.
Your suggestion would still yield three identical labels...


From: "Humphrey van Polanen Petel" <hpvpp@optusnet.com.au>
Date: Sunday, 24 January 2021 at 01:52:49
To: "grub-devel@gnu.org" <grub-devel@gnu.org>
Subject: need hostname on menu

Hi,

Currently, the grub menu has no option to display the hostname, but when on a dual-boot system there two systems of the same distribution it becomes a problem when the user is not sure which install is on which disk.  In my case, I had Ubuntu 16.04 and 20.04 on separate disks and grub just gave "Ubuntu" as the default so I had to close down the system and reopen the case to refresh my memory of which install was on which disk.  I solved the problem  by replacing

    GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`

with

    GRUB_DISTRIBUTOR=`cat /etc/hostname || lsb_release -i -s 2> /dev/null || echo Debian`

which worked well enough.

However, it seems to me that it would be a lot more useful to add a parameter allowing the user to display the name of the install from /etc/hostname.

Humphrey

-- 
We are but sheep and here to be fleeced

Dit bericht kan informatie bevatten die niet voor u is bestemd. Indien u niet de geadresseerde bent of dit bericht abusievelijk aan u is toegezonden, wordt u verzocht dat aan de afzender te melden en het bericht te verwijderen. De Staat aanvaardt geen aansprakelijkheid voor schade, van welke aard ook, die verband houdt met risico's verbonden aan het elektronisch verzenden van berichten.

This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. The State accepts no liability for damage of any kind resulting from the risks inherent in the electronic transmission of messages.
reply via email to

[Prev in Thread] Current Thread [Next in Thread]