2018-07-10 19:08:14 +00:00
|
|
|
From b4d709b6ee789cdaf3fa7a80fd90c721a16f48c2 Mon Sep 17 00:00:00 2001
|
2018-01-17 22:04:09 +00:00
|
|
|
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
|
2018-07-10 19:08:14 +00:00
|
|
|
Date: Tue, 29 Aug 2017 16:40:53 -0400
|
|
|
|
Subject: [PATCH] Use grub-file to figure out whether multiboot2 should be used
|
|
|
|
for Xen.gz
|
2018-01-17 22:04:09 +00:00
|
|
|
|
|
|
|
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>
|
2018-07-10 19:08:14 +00:00
|
|
|
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
|
2018-01-17 22:04:09 +00:00
|
|
|
---
|
2018-07-10 19:08:14 +00:00
|
|
|
util/grub.d/20_linux_xen.in | 9 +++++++--
|
|
|
|
1 file changed, 7 insertions(+), 2 deletions(-)
|
2018-01-17 22:04:09 +00:00
|
|
|
|
|
|
|
diff --git a/util/grub.d/20_linux_xen.in b/util/grub.d/20_linux_xen.in
|
2018-07-10 19:08:14 +00:00
|
|
|
index 083bcef5d1b..0cb0f4e49b9 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
|
2018-07-10 19:08:14 +00:00
|
|
|
@@ -210,8 +210,13 @@ while [ "x${xen_list}" != "x" ] ; do
|
|
|
|
xen_loader="xen_hypervisor"
|
|
|
|
module_loader="xen_module"
|
2018-01-17 22:04:09 +00:00
|
|
|
else
|
2018-07-10 19:08:14 +00:00
|
|
|
- xen_loader="multiboot"
|
|
|
|
- module_loader="module"
|
2018-01-17 22:04:09 +00:00
|
|
|
+ if ($grub_file --is-x86-multiboot2 $current_xen); then
|
2018-07-10 19:08:14 +00:00
|
|
|
+ xen_loader="multiboot2"
|
|
|
|
+ module_loader="module2"
|
|
|
|
+ else
|
|
|
|
+ xen_loader="multiboot"
|
|
|
|
+ module_loader="module"
|
|
|
|
+ fi
|
2018-01-17 22:04:09 +00:00
|
|
|
fi
|
|
|
|
while [ "x$list" != "x" ] ; do
|
|
|
|
linux=`version_find_latest $list`
|