From f601d9f3f76f5196e5f59dd4664cfd612f53bc19 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Tue, 13 Dec 2022 05:12:35 +0100 Subject: [PATCH] templates/linux_xen: Fix detecting XSM policy MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Daniel Kiper --- util/grub.d/20_linux_xen.in | 1 + 1 file changed, 1 insertion(+) diff --git a/util/grub.d/20_linux_xen.in b/util/grub.d/20_linux_xen.in index c1ebd0953..e46b757da 100644 --- a/util/grub.d/20_linux_xen.in +++ b/util/grub.d/20_linux_xen.in @@ -105,6 +105,7 @@ linux_entry_xsm () xsm="$7" # If user wants to enable XSM support, make sure there's # corresponding policy file. + xenpolicy= if ${xsm} ; then xenpolicy="xenpolicy-$xen_version" if test ! -e "${xen_dirname}/${xenpolicy}" ; then -- 2.47.2