On Mon, Jun 18, 2018 at 04:40:41PM +0200, Ondřej Lysoněk wrote:
On 14.6.2018 12:06, Jan Kurik wrote:
I noticed the official spec defines a field named "machine-id". AFAICS,
GRUB2 doesn't implement that option, but it supports a field named "id".
Are these used for the same thing? If they are, why are they named
differently?
This questions wasn't addressed yet afaics.
The partial answer is that "id" serves a different purpose to
"machine-id":
- "machine-id" is used to specify the machine for which the entry was installed
- "id" is used by grub2 as a unique identifier usable for saving entries
That raises two questions:
1. Why isn't just the bls-snippet filename used as the key? It's
necessarily unique and should be usable for the purpose of uniquely
identifying the boot entry without creating a separate field.
2. Why is "id" supposed to be sortable? What sorting would grub2 do
with it?
Zbyszek