Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1l3Tdt-0003fJ-5M for mharc-grub-devel@gnu.org; Sat, 23 Jan 2021 19:52:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42886) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l3Tdr-0003f9-3t for grub-devel@gnu.org; Sat, 23 Jan 2021 19:52:35 -0500 Received: from mail105.syd.optusnet.com.au ([211.29.132.249]:59623) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l3Tdo-0005Pz-7O for grub-devel@gnu.org; Sat, 23 Jan 2021 19:52:34 -0500 Received: from [192.168.0.10] (unknown [110.32.125.44]) (Authenticated sender: hpvpp@optusnet.com.au) by mail105.syd.optusnet.com.au (Postfix) with ESMTPSA id CBE533C2A7D for ; Sun, 24 Jan 2021 11:52:24 +1100 (AEDT) To: grub-devel@gnu.org From: Humphrey van Polanen Petel Subject: need hostname on menu Message-ID: <968fe2d7-e30f-7c50-e425-9366553d4508@optusnet.com.au> Date: Sun, 24 Jan 2021 11:52:24 +1100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------F941EA3AFEE3A818D510480F" Content-Language: en-US X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.3 cv=F8MpiZpN c=1 sm=1 tr=0 cx=a_idp_d a=iX/8SjJMN17b1Hg7kHkbMA==:117 a=iX/8SjJMN17b1Hg7kHkbMA==:17 a=RSmzAf-M6YYA:10 a=r77TgQKjGQsHNAKrUKIA:9 a=FXHD-47Xwti4EdEGRssA:9 a=QEXdDO2ut3YA:10 a=-Zx4sP_w0A26AT9YMooA:9 a=_W_S_7VecoQA:10 a=pHzHmUro8NiASowvMSCR:22 a=Ew2E2A-JSTLzCXPT_086:22 Received-SPF: pass client-ip=211.29.132.249; envelope-from=hpvpp@optusnet.com.au; helo=mail105.syd.optusnet.com.au X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-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 00:52:35 -0000 This is a multi-part message in MIME format. --------------F941EA3AFEE3A818D510480F Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 --------------F941EA3AFEE3A818D510480F Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

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
--------------F941EA3AFEE3A818D510480F--