mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-11-24 22:35:28 +00:00
81987f4958
- Try to fix things for new compiler madness. I really don't know why gcc decided __attribute__((packed)) on a "typedef struct" should imply __attribute__((align (1))) and that it should have a warning that it does so. The obvious behavior would be to keep the alignment of the first element unless it's used in another object or type that /also/ hask the packed attribute. Why should it change the default alignment at all? - Merge in the BLS patches Javier and I wrote. - Attempt to fix pmtimer initialization failures to not be super duper slow. Signed-off-by: Peter Jones <pjones@redhat.com>
33 lines
1 KiB
Diff
33 lines
1 KiB
Diff
From 940c62edc168e3b7715b04a30c0bd8a1a423c5e1 Mon Sep 17 00:00:00 2001
|
|
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
|
|
Date: Mon, 28 Aug 2017 13:59:12 -0400
|
|
Subject: [PATCH 195/206] Use grub-file to figure out whether multiboot2 should
|
|
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
|
|
index 9b1bd716965..fae1ffe9494 100644
|
|
--- 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`
|
|
--
|
|
2.15.0
|
|
|