15a207
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
15a207
From: Peter Jones <pjones@redhat.com>
15a207
Date: Thu, 19 Oct 2017 11:29:11 -0400
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
15a207
index bcdc3ceac02..2bc03fd36b9 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}
15a207
@@ -145,6 +147,7 @@ EOF
15a207
     message="$(gettext_printf "Loading initial ramdisk ...")"
15a207
     sed "s/^/$submenu_indentation/" << EOF
15a207
 	echo	'$(echo "$message" | grub_quote)'
15a207
+	insmod ${module_loader}
15a207
 	${module_loader}	--nounzip   ${rel_dirname}/${initrd}
15a207
 EOF
15a207
   fi