[Top][All Lists]

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

[PATCH] templates/linux_xen: fix detecting xsm policy

From: Marek Marczykowski-Górecki
Subject: [PATCH] templates/linux_xen: fix detecting xsm policy
Date: Tue, 13 Dec 2022 05:12:35 +0100

xsmpolicy 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 <>
 util/grub.d/ | 1 +
 1 file changed, 1 insertion(+)

diff --git a/util/grub.d/ b/util/grub.d/
index c1ebd0953..e46b757da 100644
--- a/util/grub.d/
+++ b/util/grub.d/
@@ -105,6 +105,7 @@ linux_entry_xsm ()
   # If user wants to enable XSM support, make sure there's
   # corresponding policy file.
+  xenpolicy=
   if ${xsm} ; then
       if test ! -e "${xen_dirname}/${xenpolicy}" ; then

reply via email to

[Prev in Thread] Current Thread [Next in Thread]