zbyszek / rpms / grub2

Forked from rpms/grub2 5 years ago
Clone
3c4dd19
From 87c089b6f1945ebcc690697d279c74284f1b4072 Mon Sep 17 00:00:00 2001
307d019
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
6f1e3d5
Date: Mon, 28 Aug 2017 13:59:12 -0400
5034b2b
Subject: [PATCH 194/236] Use grub-file to figure out whether multiboot2 should
307d019
 be used for Xen.gz
307d019
307d019
The multiboot2 is much more preferable than multiboot. Especiall
307d019
if booting under EFI where multiboot does not have the functionality
307d019
to pass ImageHandler.
307d019
307d019
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
307d019
---
6f1e3d5
 util/grub.d/20_linux_xen.in | 4 ++++
6f1e3d5
 1 file changed, 4 insertions(+)
307d019
307d019
diff --git a/util/grub.d/20_linux_xen.in b/util/grub.d/20_linux_xen.in
81987f4
index 9b1bd716965..fae1ffe9494 100644
307d019
--- a/util/grub.d/20_linux_xen.in
307d019
+++ b/util/grub.d/20_linux_xen.in
6f1e3d5
@@ -216,6 +216,10 @@ while [ "x${xen_list}" != "x" ] ; do
307d019
     else
6f1e3d5
 	xen_loader="multiboot"
6f1e3d5
 	module_loader="module"
307d019
+	if ($grub_file --is-x86-multiboot2 $current_xen); then
6f1e3d5
+		xen_loader="multiboot2"
6f1e3d5
+		module_loader="module2"
6f1e3d5
+	fi
307d019
     fi
307d019
     while [ "x$list" != "x" ] ; do
307d019
 	linux=`version_find_latest $list`
307d019
-- 
81987f4
2.15.0
307d019