Blame SOURCES/0107-20_linux_xen-load-xen-or-multiboot-2-modules-as-need.patch

d9d99f
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
d9d99f
From: Peter Jones <pjones@redhat.com>
d9d99f
Date: Thu, 19 Oct 2017 11:29:11 -0400
d9d99f
Subject: [PATCH] 20_linux_xen: load xen or multiboot{,2} modules as needed.
d9d99f
d9d99f
Signed-off-by: Peter Jones <pjones@redhat.com>
d9d99f
---
d9d99f
 util/grub.d/20_linux_xen.in | 3 +++
d9d99f
 1 file changed, 3 insertions(+)
d9d99f
d9d99f
diff --git a/util/grub.d/20_linux_xen.in b/util/grub.d/20_linux_xen.in
b71686
index bcdc3ceac..2bc03fd36 100644
d9d99f
--- a/util/grub.d/20_linux_xen.in
d9d99f
+++ b/util/grub.d/20_linux_xen.in
d9d99f
@@ -136,6 +136,8 @@ linux_entry ()
d9d99f
         else
d9d99f
             xen_rm_opts="no-real-mode edd=off"
d9d99f
         fi
d9d99f
+	insmod ${module_loader}
d9d99f
+	insmod ${xen_loader}
d9d99f
 	${xen_loader}	${rel_xen_dirname}/${xen_basename} placeholder ${xen_args} \${xen_rm_opts}
d9d99f
 	echo	'$(echo "$lmessage" | grub_quote)'
d9d99f
 	${module_loader}	${rel_dirname}/${basename} placeholder root=${linux_root_device_thisversion} ro ${args}
d9d99f
@@ -145,6 +147,7 @@ EOF
d9d99f
     message="$(gettext_printf "Loading initial ramdisk ...")"
d9d99f
     sed "s/^/$submenu_indentation/" << EOF
d9d99f
 	echo	'$(echo "$message" | grub_quote)'
d9d99f
+	insmod ${module_loader}
d9d99f
 	${module_loader}	--nounzip   ${rel_dirname}/${initrd}
d9d99f
 EOF
d9d99f
   fi