Martin Kolman 53edcb
From fb82d621d25c6cc0705962085897364d2a23718b Mon Sep 17 00:00:00 2001
Martin Kolman 53edcb
From: Adam Williamson <awilliam@redhat.com>
Martin Kolman 53edcb
Date: Thu, 19 Oct 2017 11:00:47 -0700
Martin Kolman 53edcb
Subject: [PATCH] Mac EFI installs need grub2-tools (#1503496)
Martin Kolman 53edcb
Martin Kolman 53edcb
For the UEFI 64-on-32 stuff, pjones changed the MacEFIGRUB class
Martin Kolman 53edcb
to just define the `packages` attribute directly as a list of
Martin Kolman 53edcb
two packages; previously, MacEFIGRUB inherited the list from a
Martin Kolman 53edcb
parent class. As reported in #1503496, the two packages listed
Martin Kolman 53edcb
(grub2-tools-efi and mactel-boot) aren't enough for bootloader
Martin Kolman 53edcb
install to actually work.
Martin Kolman 53edcb
Martin Kolman 53edcb
This changes things so MacEFIGRUB defines `_packages64`, like
Martin Kolman 53edcb
Aarch64EFIGRUB, which should effectively cause it to include
Martin Kolman 53edcb
those packages, plus the packages listed in the `GRUB2` class
Martin Kolman 53edcb
and the `_packages_common` from the `EFIGRUB` class. I'm not
Martin Kolman 53edcb
sure if that might be too many packages, but it's at least in
Martin Kolman 53edcb
line with how another class does things and simple. The other
Martin Kolman 53edcb
option would be just to extend the class's direct `packages`
Martin Kolman 53edcb
list.
Martin Kolman 53edcb
---
Martin Kolman 53edcb
 pyanaconda/bootloader.py | 2 +-
Martin Kolman 53edcb
 1 file changed, 1 insertion(+), 1 deletion(-)
Martin Kolman 53edcb
Martin Kolman 53edcb
diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
Martin Kolman 53edcb
index 93838fd0a..1e86c9769 100644
Martin Kolman 53edcb
--- a/pyanaconda/bootloader.py
Martin Kolman 53edcb
+++ b/pyanaconda/bootloader.py
Martin Kolman 53edcb
@@ -1862,7 +1862,7 @@ class Aarch64EFIGRUB(EFIGRUB):
Martin Kolman 53edcb
     _efi_binary = "\\shimaa64.efi"
Martin Kolman 53edcb
 
Martin Kolman 53edcb
 class MacEFIGRUB(EFIGRUB):
Martin Kolman 53edcb
-    packages = [ "grub2-tools-efi", "mactel-boot" ]
Martin Kolman 53edcb
+    _packages64 = [ "grub2-tools-efi", "mactel-boot" ]
Martin Kolman 53edcb
     def mactel_config(self):
Martin Kolman 53edcb
         if os.path.exists(iutil.getSysroot() + "/usr/libexec/mactel-boot-setup"):
Martin Kolman 53edcb
             rc = iutil.execInSysroot("/usr/libexec/mactel-boot-setup", [])
Martin Kolman 53edcb
-- 
Martin Kolman 53edcb
2.13.6
Martin Kolman 53edcb