#764593 grub-pc: Request for more OS details, like hostname, in the grub menu entries

Package:
grub-pc
Source:
grub2
Description:
GRand Unified Bootloader, version 2 (PC/BIOS version)
Submitter:
Rogier
Date:
2014-10-09 11:39:07 UTC
Severity:
wishlist
#764593#5
Date:
2014-10-09 11:37:39 UTC
From:
To:
Dear Maintainer,

On my system, I have configured a number of different OS instances for
testing purposes. Some of these run other distributions, most are debian.

I either run them as a virtual machine, or sometimes select the desired
one when booting.
Although grub lets me select which instance I wish to boot, it
presents a useless, cryptic menu containing mostly identical entries. E.g.;

	Debian GNU/Linux
	Advanced options for Debian GNU/Linux
	Debian GNU/Linux (jessie/sid)
	Advanced options for Debian GNU/Linux (jessie/sid)
	Debian GNU/Linux (jessie/sid)
	Advanced options for Debian GNU/Linux (jessie/sid)
	Fedora release 20 (Heisenbug)
	Advanced options for Fedora release 20 (Heisenbug)
	Debian GNU/Linux (jessie/sid)
	Advanced options for Debian GNU/Linux (jessie/sid)
	Debian GNU/Linux (jessie/sid)
	Advanced options for Debian GNU/Linux (jessie/sid)
	Debian GNU/Linux (jessie/sid)
	Advanced options for Debian GNU/Linux (jessie/sid)
	Debian GNU/Linux (jessie/sid)
	Advanced options for Debian GNU/Linux (jessie/sid)
	Debian GNU/Linux (jessie/sid)
	Advanced options for Debian GNU/Linux (jessie/sid)
	Ubuntu 14.04 LTS (14.04)
	Advanced options for Ubuntu 14.04 LTS (14.04)

Obviously, this is not very useful.

Would it be possible to have update-grub include the hostname and the
name of the device where the system resides in every menu entry ?
If at the same time, the 'advanced' entries could also be indented, the
entire menu would become much more efficient to use. For instance:

(my hostnames mostly match the LVM logical volume names)

	rogier-pc		Debian GNU/Linux on /dev/vg00/rogier
				Advanced options
	build1			Debian GNU/Linux (jessie/sid) on /dev/vg00/build1
				Advanced options
	build2			Debian GNU/Linux (jessie/sid) on /dev/vg00/build2
				Advanced options
	fedora20		Fedora release 20 (Heisenbug) on /dev/vg00/fedora20
				Advanced options
	jessie32		Debian GNU/Linux (jessie/sid) on /dev/vg00/jessie32
				Advanced options
	jessie64		Debian GNU/Linux (jessie/sid) on /dev/vg00/jessie64
				Advanced options
	test1			Debian GNU/Linux (jessie/sid) on /dev/vg00/test1
				Advanced options
	test2			Debian GNU/Linux (jessie/sid) on /dev/vg00/test2
				Advanced options
	test3			Debian GNU/Linux (jessie/sid) on /dev/vg00/test3
				Advanced options
	ubuntu1404		Ubuntu1404 LTS (14.04) on /dev/vg00/ubuntu1404
				Advanced options

Obviously, the hostname is most convenient for users, but not necessarily
unique; The device name would serve to disambiguate.

In case it's of any use, I have written a patch for os-prober which makes it add
the hostname of the system (if detectable) to its output. I have implemented this
for most system types, although I haven't been able to test all of them, as I
don't have the necessary system instances.

Kind regards,

Rogier.