|
|
56d25d |
From 939f2d3dc981fe6a3258ac943673c43d7a4964a1 Mon Sep 17 00:00:00 2001
|
|
|
775cb0 |
From: no one <noone@example.com>
|
|
|
775cb0 |
Date: Thu, 13 Feb 2014 10:30:11 -0500
|
|
|
56d25d |
Subject: [PATCH 08/41] Use the correct load commands for aarch64 efi.
|
|
|
775cb0 |
|
|
|
775cb0 |
Resolves: rhbz#1081269
|
|
|
775cb0 |
---
|
|
|
775cb0 |
grubby.c | 7 +++++++
|
|
|
775cb0 |
test.sh | 17 ++++++++++++++---
|
|
|
775cb0 |
2 files changed, 21 insertions(+), 3 deletions(-)
|
|
|
775cb0 |
|
|
|
775cb0 |
diff --git a/grubby.c b/grubby.c
|
|
|
56d25d |
index aa228c3..0205882 100644
|
|
|
775cb0 |
--- a/grubby.c
|
|
|
775cb0 |
+++ b/grubby.c
|
|
|
775cb0 |
@@ -714,10 +714,17 @@ static enum lineType_e preferredLineType(enum lineType_e type,
|
|
|
775cb0 |
struct configFileInfo *cfi) {
|
|
|
775cb0 |
if (isEfi && cfi == &grub2ConfigType) {
|
|
|
775cb0 |
switch (type) {
|
|
|
775cb0 |
+#if defined(__aarch64__)
|
|
|
775cb0 |
+ case LT_KERNEL:
|
|
|
775cb0 |
+ return LT_KERNEL;
|
|
|
775cb0 |
+ case LT_INITRD:
|
|
|
775cb0 |
+ return LT_INITRD;
|
|
|
775cb0 |
+#else
|
|
|
775cb0 |
case LT_KERNEL:
|
|
|
775cb0 |
return LT_KERNEL_EFI;
|
|
|
775cb0 |
case LT_INITRD:
|
|
|
775cb0 |
return LT_INITRD_EFI;
|
|
|
775cb0 |
+#endif
|
|
|
775cb0 |
default:
|
|
|
775cb0 |
return type;
|
|
|
775cb0 |
}
|
|
|
775cb0 |
diff --git a/test.sh b/test.sh
|
|
|
775cb0 |
index 5be4006..1d28fb1 100755
|
|
|
775cb0 |
--- a/test.sh
|
|
|
775cb0 |
+++ b/test.sh
|
|
|
775cb0 |
@@ -443,9 +443,20 @@ if [ "$testgrub2" == "y" ]; then
|
|
|
775cb0 |
grub2Test grub2.1 add/g2-1.1 --add-kernel=/boot/new-kernel.img \
|
|
|
775cb0 |
--title='title' --initrd=/boot/new-initrd --boot-filesystem=/boot/ \
|
|
|
775cb0 |
--copy-default
|
|
|
775cb0 |
- grub2Test grub2.1 add/g2-1.6 --add-kernel=/boot/new-kernel.img \
|
|
|
775cb0 |
- --title='title' --initrd=/boot/new-initrd --boot-filesystem=/boot/ \
|
|
|
775cb0 |
- --copy-default --efi
|
|
|
775cb0 |
+ case $ARCH in
|
|
|
775cb0 |
+ aarch64)
|
|
|
775cb0 |
+ grub2Test grub2.1 add/g2-1.1 --add-kernel=/boot/new-kernel.img \
|
|
|
775cb0 |
+ --title='title' \
|
|
|
775cb0 |
+ --initrd=/boot/new-initrd --boot-filesystem=/boot/ \
|
|
|
775cb0 |
+ --copy-default --efi
|
|
|
775cb0 |
+ ;;
|
|
|
775cb0 |
+ *)
|
|
|
775cb0 |
+ grub2Test grub2.1 add/g2-1.6 --add-kernel=/boot/new-kernel.img \
|
|
|
775cb0 |
+ --title='title' \
|
|
|
775cb0 |
+ --initrd=/boot/new-initrd --boot-filesystem=/boot/ \
|
|
|
775cb0 |
+ --copy-default --efi
|
|
|
775cb0 |
+ ;;
|
|
|
775cb0 |
+ esac
|
|
|
775cb0 |
grub2Test grub2.6 add/g2-1.7 --add-kernel=/boot/new-kernel.img \
|
|
|
775cb0 |
--title='title' --initrd=/boot/new-initrd --boot-filesystem=/boot/ \
|
|
|
775cb0 |
--copy-default --efi
|
|
|
775cb0 |
--
|
|
|
56d25d |
2.4.3
|
|
|
775cb0 |
|