mirror of
https://abf.rosa.ru/djam/livecd-tools.git
synced 2025-02-23 23:52:58 +00:00
30 lines
1.2 KiB
Diff
30 lines
1.2 KiB
Diff
From f14c853aa3c022e7e5e1ff35fc64fbf739e61dd3 Mon Sep 17 00:00:00 2001
|
|
From: Mikhail Novosyolov <m.novosyolov@rosalinux.ru>
|
|
Date: Sun, 27 Jun 2021 15:54:00 +0300
|
|
Subject: [PATCH 08/12] Fix name of x86_64 bootloader according to UEFI spec
|
|
|
|
---
|
|
imgcreate/live.py | 7 ++++++-
|
|
1 file changed, 6 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/imgcreate/live.py b/imgcreate/live.py
|
|
index f1349b0..707dd39 100644
|
|
--- a/imgcreate/live.py
|
|
+++ b/imgcreate/live.py
|
|
@@ -700,7 +700,12 @@ menu end
|
|
def efiarch(self):
|
|
if not self._efiarch:
|
|
# for most things, we want them named boot$efiarch
|
|
- efiarch = {"i386": "IA32", "x86_64": "X64"}
|
|
+ # Note that AA64 and IA32 are in uppercase but x64 is in lowercase
|
|
+ # according to the UEFI specification
|
|
+ # "Unified Extensible Firmware Interface (UEFI) Specification, Version 2.7 Errata A, August 2017"
|
|
+ # https://uefi.org/sites/default/files/resources/UEFI%20Spec%202_7_A%20Sept%206.pdf
|
|
+ # 3.5.1.1 Removable Media Boot Behavior, Table 14. UEFI Image Types, page 159
|
|
+ efiarch = {"i386": "IA32", "x86_64": "x64"}
|
|
self._efiarch = efiarch[dnf.rpm.basearch(hawkey.detect_arch())]
|
|
return self._efiarch
|
|
|
|
--
|
|
2.31.1
|
|
|