15a207
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
15a207
From: Peter Jones <pjones@redhat.com>
e15314
Date: Tue, 9 Jul 2019 14:31:19 +0200
15a207
Subject: [PATCH] 20_linux_xen: load xen or multiboot{,2} modules as needed.
15a207
15a207
Signed-off-by: Peter Jones <pjones@redhat.com>
15a207
---
15a207
 util/grub.d/20_linux_xen.in | 3 +++
15a207
 1 file changed, 3 insertions(+)
15a207
15a207
diff --git a/util/grub.d/20_linux_xen.in b/util/grub.d/20_linux_xen.in
e15314
index 1519ec692fe..9aa23bc7d51 100644
15a207
--- a/util/grub.d/20_linux_xen.in
15a207
+++ b/util/grub.d/20_linux_xen.in
15a207
@@ -136,6 +136,8 @@ linux_entry ()
15a207
         else
15a207
             xen_rm_opts="no-real-mode edd=off"
15a207
         fi
15a207
+	insmod ${module_loader}
15a207
+	insmod ${xen_loader}
15a207
 	${xen_loader}	${rel_xen_dirname}/${xen_basename} placeholder ${xen_args} \${xen_rm_opts}
15a207
 	echo	'$(echo "$lmessage" | grub_quote)'
15a207
 	${module_loader}	${rel_dirname}/${basename} placeholder root=${linux_root_device_thisversion} ro ${args}
e15314
@@ -149,6 +151,7 @@ EOF
e15314
     done
15a207
     sed "s/^/$submenu_indentation/" << EOF
15a207
 	echo	'$(echo "$message" | grub_quote)'
15a207
+	insmod ${module_loader}
e15314
 	${module_loader}	--nounzip   $(echo $initrd_path)
15a207
 EOF
15a207
   fi