From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1l3b1g-0004CV-9U for mharc-grub-devel@gnu.org; Sun, 24 Jan 2021 03:45:44 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55600) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l3b1X-0004Bx-VU for grub-devel@gnu.org; Sun, 24 Jan 2021 03:45:35 -0500 Received: from mail.mindef.nl ([217.169.235.200]:34718 helo=mx.mindef.nl) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l3b1U-0005qi-Rj for grub-devel@gnu.org; Sun, 24 Jan 2021 03:45:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mindef.nl; h=from : to : subject : date : references : in-reply-to : content-type : mime-version : message-id; s=key01; bh=qnNedsnqw3cHYHO/rdgU6bqJSNw7DLsUYkD2eD5F4dw=; b=rkqWvCEwiV3XPU/wZ0TOZwjl6xKSqhUAm2/G89gdj/FKt8rWCZ8gdVN4ZYoG41kDClzO vesBZccBYQ5Wv7ps/GtrnpVAL30EOQNxsZOivEGivbsQB/70yV6e+/oDPA/7/fw+jLTT BdaBCJCxQjBxx/x3i9qKkGFubRiPU0WMsbBJo66q54crzneTCWmFhjqtoxuKLR50B3Wa cPe4s/v5PEfVFa4BsEkX5Pc2c48K1Z21CSk1w003Jt9y0FReESDHyQdTDgKY+F2IWLZL LjPegb4XxyMoOhumobV+9Vz4alurx1jpddudPmnvW88hm4MrHM0tG6N8zxUpbvxXbok9 wg== Received: from v2lqai4962.msg.iegi.nl ([10.60.221.154]) by 0151ims403.msg.iegi.nl (8.16.0.43/8.16.0.43) with ESMTP id 10O8jNeC023626 for ; Sun, 24 Jan 2021 09:45:23 +0100 Message-Id: <368a468t05-1@0151ims403.msg.iegi.nl> Received: from somewhere by someone Received: from somewhere by someone Received: from somewhere by someone Received: from somewhere by someone From: To: Subject: Re: need hostname on menu Date: Sun, 24 Jan 2021 08:45:22 +0000 References: <6ecee3f7-3b00-4fba-8320-5c65a2549da7@QAD40071.mod.nl> In-Reply-To: <6ecee3f7-3b00-4fba-8320-5c65a2549da7@QAD40071.mod.nl> Accept-Language: en-US, nl-NL Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_cnuaa83vh5ofl7cebpi62nee1611477922753emailplusmobileiro_" MIME-Version: 1.0 Received-SPF: pass client-ip=217.169.235.200; envelope-from=J.Witvliet@mindef.nl; helo=mx.mindef.nl X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jan 2021 08:45:36 -0000 --_000_cnuaa83vh5ofl7cebpi62nee1611477922753emailplusmobileiro_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable No, that would still be not enough: Imagine installing centOS 3 times, one with gnome-desktop, one with kde-des= ktop, 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" > Date: Sunday, 24 January 2021 at 01:52:49 To: "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 c= ase, I had Ubuntu 16.04 and 20.04 on separate disks and grub just gave "Ubu= ntu" as the default so I had to close down the system and reopen the case t= o refresh my memory of which install was on which disk. I solved the probl= em by replacing GRUB_DISTRIBUTOR=3D`lsb_release -i -s 2> /dev/null || echo Debian` with GRUB_DISTRIBUTOR=3D`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 paramet= er 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 ni= et de geadresseerde bent of dit bericht abusievelijk aan u is toegezonden, = wordt u verzocht dat aan de afzender te melden en het bericht te verwijdere= n. De Staat aanvaardt geen aansprakelijkheid voor schade, van welke aard oo= k, 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 a= re 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 n= o liability for damage of any kind resulting from the risks inherent in the= electronic transmission of messages. --_000_cnuaa83vh5ofl7cebpi62nee1611477922753emailplusmobileiro_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
No, that would still be not enough:
Imagine installing centOS 3 times, one with gnome-desktop, one with kd= e-desktop, and one with yet another variant, but all using the same OS-rele= ase.
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 i= s on which disk.  In my case, I had Ubuntu 16.04 and 20.04 on separate disks and grub just gave "Ubuntu&q= uot; as the default so I had to close down the system and reopen the case t= o refresh my memory of which install was on which disk.  I solved the = problem  by replacing

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

with

    GRUB_DISTRIBUTOR=3D`cat /etc/ho= stname || 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 para= meter allowing the user to display the name of the install from /etc/hostna= me.

Humphrey

--=20
We are but sheep and here to be fleeced

Dit bericht kan informatie bevatten die niet voor u is bestemd. Indien u ni= et de geadresseerde bent of dit bericht abusievelijk aan u is toegezonden, = wordt u verzocht dat aan de afzender te melden en het bericht te verwijdere= n. 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 a= re 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 n= o liability for damage of any kind resulting from the risks inherent in the electronic transmission of messag= es. --_000_cnuaa83vh5ofl7cebpi62nee1611477922753emailplusmobileiro_--