]> git.ipfire.org Git - thirdparty/grub.git/commit
templates/linux_xen: Fix detecting XSM policy
authorMarek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Tue, 13 Dec 2022 04:12:35 +0000 (05:12 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 10 Jan 2023 15:15:15 +0000 (16:15 +0100)
commitf601d9f3f76f5196e5f59dd4664cfd612f53bc19
treef4749e2241584ff016176d71e7c623e0d3ddf32e
parentfaca60df7686a9a3ad9693e8a7b2c6a3a823d133
templates/linux_xen: Fix detecting XSM policy

The xenpolicy variable was left set from previous function call. This
resulted in all-but-first menu entries including XSM policy, even if it
did not exist.

Fix this by initializing the xenpolicy variable.

Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
util/grub.d/20_linux_xen.in