All of lore.kernel.org
 help / color / mirror / Atom feed
From: <J.Witvliet@mindef.nl>
To: <grub-devel@gnu.org>
Subject: Re: need hostname on menu
Date: Sun, 24 Jan 2021 08:45:22 +0000	[thread overview]
Message-ID: <368a468t05-1@0151ims403.msg.iegi.nl> (raw)
In-Reply-To: <6ecee3f7-3b00-4fba-8320-5c65a2549da7@QAD40071.mod.nl>

[-- Attachment #1: Type: text/plain, Size: 2120 bytes --]

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<mailto:hpvpp@optusnet.com.au>>
Date: Sunday, 24 January 2021 at 01:52:49
To: "grub-devel@gnu.org" <grub-devel@gnu.org<mailto: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.

[-- Attachment #2: Type: text/html, Size: 2860 bytes --]

       reply	other threads:[~2021-01-24  8:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <6ecee3f7-3b00-4fba-8320-5c65a2549da7@QAD40071.mod.nl>
2021-01-24  8:45 ` J.Witvliet [this message]
2021-01-24 13:06 need hostname on menu J.Witvliet
  -- strict thread matches above, loose matches on Subject: below --
2021-01-24  0:52 Humphrey van Polanen Petel
2021-01-24  0:57 ` John Paul Adrian Glaubitz
2021-01-24  3:32   ` Humphrey van Polanen Petel
2021-01-24  9:03     ` John Paul Adrian Glaubitz
2021-01-24 11:26       ` Humphrey van Polanen Petel
2021-01-24 11:38         ` John Paul Adrian Glaubitz
2021-01-24  9:28 ` Didier Spaier
2021-01-24  9:33   ` Didier Spaier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=368a468t05-1@0151ims403.msg.iegi.nl \
    --to=j.witvliet@mindef.nl \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.