c2110212fb
(1) Release Version Upgrade (2) change grub2 require to grub2-tools As grub2 does not create empty grub2 pkg with upgrading to el8, but create empty grub2 pkg in el7 so we should change the grub2 to grub2-tools pkg Currently auto apply all patches as below %autosetup -p1 instead of applying patches commmand by command: %patchxxxx -p1 Story: 2006729 Task: 37687 Change-Id: I62ae8134d4b492aeca093ad7e8992256dcc91c1c Signed-off-by: Long Li <lilong-neu@neusoft.com>
91 lines
2.9 KiB
Diff
91 lines
2.9 KiB
Diff
From 76cd2b90fd4e550e162bc8fc7e247ed2f4e6e310 Mon Sep 17 00:00:00 2001
|
|
From: Don Penney <don.penney@windriver.com>
|
|
Date: Fri, 17 Nov 2017 12:06:39 -0500
|
|
Subject: [PATCH] revert 7.4 grub2 efi handling
|
|
|
|
---
|
|
pyanaconda/bootloader.py | 36 +++---------------------------------
|
|
1 file changed, 3 insertions(+), 33 deletions(-)
|
|
|
|
diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
|
|
index 44c16d1..42a466f 100644
|
|
--- a/pyanaconda/bootloader.py
|
|
+++ b/pyanaconda/bootloader.py
|
|
@@ -1458,9 +1458,7 @@ class GRUB2(GRUB):
|
|
|
|
"""
|
|
name = "GRUB2"
|
|
- # grub2 is a virtual provides that's provided by grub2-pc, grub2-ppc64le,
|
|
- # and all of the primary grub components that aren't grub2-efi-${EFIARCH}
|
|
- packages = ["grub2", "grub2-tools"]
|
|
+ packages = ["grub2-tools"]
|
|
_config_file = "grub.cfg"
|
|
_config_dir = "grub2"
|
|
_passwd_file = "user.cfg"
|
|
@@ -1890,8 +1888,7 @@ class EFIGRUB1(EFIBase, GRUB):
|
|
|
|
|
|
class EFIGRUB(EFIBase, GRUB2):
|
|
- _packages32 = [ "grub2-efi-ia32", "shim-ia32" ]
|
|
- _packages_common = [ "efibootmgr" ]
|
|
+ packages = ["grub2-efi", "efibootmgr", "shim"]
|
|
can_dual_boot = False
|
|
stage2_is_valid_stage1 = False
|
|
stage2_bootable = False
|
|
@@ -1901,38 +1898,13 @@ class EFIGRUB(EFIBase, GRUB2):
|
|
def __init__(self):
|
|
super().__init__()
|
|
self.efi_dir = 'BOOT'
|
|
- self._packages64 = [ "grub2-efi-x64", "shim-x64" ]
|
|
-
|
|
- try:
|
|
- f = open("/sys/firmware/efi/fw_platform_size", "r")
|
|
- value = f.readline().strip()
|
|
- except IOError:
|
|
- log.info("Reading /sys/firmware/efi/fw_platform_size failed, defaulting to 64-bit install.")
|
|
- value = '64'
|
|
- if value == '32':
|
|
- self._is_32bit_firmware = True
|
|
-
|
|
- @property
|
|
- def _efi_binary(self):
|
|
- if self._is_32bit_firmware:
|
|
- return "\\shimia32.efi"
|
|
- return "\\shimx64.efi"
|
|
-
|
|
- @property
|
|
- def packages(self):
|
|
- if self._is_32bit_firmware:
|
|
- return self._packages32 + self._packages_common + \
|
|
- super().packages
|
|
- return self._packages64 + self._packages_common + \
|
|
- super().packages
|
|
+ _efi_binary = "\\shim.efi"
|
|
|
|
class Aarch64EFIGRUB(EFIGRUB):
|
|
_serial_consoles = ["ttyAMA", "ttyS"]
|
|
- _efi_binary = "\\shimaa64.efi"
|
|
|
|
def __init__(self):
|
|
super().__init__()
|
|
- self._packages64 = ["grub2-efi-aa64", "shim-aa64"]
|
|
|
|
class ArmEFIGRUB(EFIGRUB):
|
|
_serial_consoles = ["ttyAMA", "ttyS"]
|
|
@@ -1940,12 +1912,10 @@ class ArmEFIGRUB(EFIGRUB):
|
|
|
|
def __init__(self):
|
|
super().__init__()
|
|
- self._packages64 = ["grub2-efi-arm"]
|
|
|
|
class MacEFIGRUB(EFIGRUB):
|
|
def __init__(self):
|
|
super().__init__()
|
|
- self._packages64.extend(["grub2-tools-efi", "mactel-boot"])
|
|
|
|
def mactel_config(self):
|
|
if os.path.exists(util.getSysroot() + "/usr/libexec/mactel-boot-setup"):
|
|
--
|
|
2.7.4
|
|
|