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

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