2018-04-11 18:42:03 +00:00
|
|
|
From 87c089b6f1945ebcc690697d279c74284f1b4072 Mon Sep 17 00:00:00 2001
|
2018-01-17 22:04:09 +00:00
|
|
|
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
|
|
|
|
Date: Mon, 28 Aug 2017 13:59:12 -0400
|
2018-05-10 15:48:20 +00:00
|
|
|
Subject: [PATCH 194/238] Use grub-file to figure out whether multiboot2 should
|
2018-01-17 22:04:09 +00:00
|
|
|
be used for Xen.gz
|
|
|
|
|
|
|
|
The multiboot2 is much more preferable than multiboot. Especiall
|
|
|
|
if booting under EFI where multiboot does not have the functionality
|
|
|
|
to pass ImageHandler.
|
|
|
|
|
|
|
|
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
|
|
|
|
---
|
|
|
|
util/grub.d/20_linux_xen.in | 4 ++++
|
|
|
|
1 file changed, 4 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/util/grub.d/20_linux_xen.in b/util/grub.d/20_linux_xen.in
|
2018-02-27 18:56:41 +00:00
|
|
|
index 9b1bd716965..fae1ffe9494 100644
|
2018-01-17 22:04:09 +00:00
|
|
|
--- a/util/grub.d/20_linux_xen.in
|
|
|
|
+++ b/util/grub.d/20_linux_xen.in
|
|
|
|
@@ -216,6 +216,10 @@ while [ "x${xen_list}" != "x" ] ; do
|
|
|
|
else
|
|
|
|
xen_loader="multiboot"
|
|
|
|
module_loader="module"
|
|
|
|
+ if ($grub_file --is-x86-multiboot2 $current_xen); then
|
|
|
|
+ xen_loader="multiboot2"
|
|
|
|
+ module_loader="module2"
|
|
|
|
+ fi
|
|
|
|
fi
|
|
|
|
while [ "x$list" != "x" ] ; do
|
|
|
|
linux=`version_find_latest $list`
|
|
|
|
--
|
2018-05-10 15:48:20 +00:00
|
|
|
2.17.0
|
2018-01-17 22:04:09 +00:00
|
|
|
|