[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v4] templates: introduce GRUB_TOP_LEVEL_* vars



Tue, 18 Oct 2022 06:57:36 -0700 Denton Liu <liu.denton@xxxxxxxxx>:

> If I'm understanding correctly, what you're proposing is a mechanism for
> setting the default entry. If I'm not mistaken, this seems like an
> orthogonal discussion to me. My patch proposes a method of setting the
> top-level menu entry while this method only sets the default entry,
> which may be hidden behind a submenu.

I think this can be done already today. At least YaST offers a way to select a 
specific item in a submenu and pass it to grub-set-default. This leads to an 
entry like this in grubenv:

saved_entry=Advanced options for SLE15SP4 (with Xen hypervisor)>Xen hypervisor, 
version 4.17.20220823T122205.399bcbf2-xen_unstable.150400.370>SLE15SP4, with 
Xen 4.17.20220823T122205.399bcbf2-xen_unstable.150400.370 and Linux 
5.14.21-150400.24.21-default

This entry will be booted as long as both this specific Xen version and this 
specific kernel version is found. There is a slim chance a SUSE specific patch 
exists to enable this functionality.

Maybe the patch description lacks a specific example how the proposed change is 
supposed to be used in your environment.

Olaf

Attachment: pgpAaPYNWePwY.pgp
Description: Digitale Signatur von OpenPGP


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.