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

Olaf Hering <[email protected]> Tue, 18 Oct 2022 13:12:35 +0200
Newsgroups gmane.comp.emulators.xen.devel,gmane.comp.boot-loaders.grub.devel,gmane.linux.debian.ports.bsd
Message-ID <[email protected]>
Mon, 17 Oct 2022 03:35:32 -0700 Denton Liu <[email protected]>:

> A user may wish to use an image that is not sorted as the "latest"
> version as the top-level entry. 

Correct.

What is really required is some form of file pattern matching and to use --id= in "menuentry title" commands.

That way one can have the "latest" of /boot/${short_pattern} as default entry, in case there are multiple variants of files matching ${short_pattern}. The pattern gets enabled with "grub-set-default pattern".

Based on this, I have to NACK your patch.


Olaf
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE97o7Um30LT3B+5b/86SN7mm1DoAFAmNOiiMACgkQ86SN7mm1
DoA4mRAAnXfdszjjzJS++3/9jLYMrjGScSHdTCxMkwofUdmS7PxjvHEI1Xofs0t5
IdjAT2g7brdzynpd2y1PDYAcs9OXI5lowh+qWsPll9OVvBFppQoyg6dzAAmue6N3
XWB8vyUgemZaLjphOsUkGRcFpafTF/8ChX8En+CkqLggDS6+wzGJAFnEL1lh5UuY
ZBvnNHThRZ1FXQa/EOnDsdIXlAgu4tIeo5F6BY8acpM4rDb6q9LsMvzanKOkJoqv
ckfurfIqvTjm76c+lmKJ5tcWsT/ouHuJ7BuRsWsyjAJ1dyw34Pj1LyTQ38DSP6s3
DBidiRbApGz0Dn2Fzn07QSx2hRXqYqR3C7O7/ATHwbVQNdxyc0PG9ggCPZT6RyfG
ia//22r1dNSE60Efc75Fbx2ru8MLokq1Uzf2GBfNPETF8IHTtJtCmAZs+9HVELbP
t7Ugwyt4ga1I/EpKYEZpiXQBMVFhIROynFSXS9guNFWf2QrlXTTMBWTr7/TJBlqt
s41KwF0SBNMD8rOs3rESwfyZjUTewaM1avm5ccjQcAVK87/CyBVXFbPXFIxRfWjg
ysR/zYQt/DiiUBinNSB+BRpjOeHteyJMFBKlsUX8WDyDRIF4jFsoYo4vHlywd97C
0BNjmZ4mypYVJXURcDHP5xs13aABYj2Q/9saYp1PONk+xtvvUY0=
=Myb3
-----END PGP SIGNATURE-----