EFI: shim file renamed

This commit is contained in:
Konstantin Vlasov 2014-11-20 21:13:28 +03:00
parent 2e5f36e3c0
commit ce0b6ce402
2 changed files with 34 additions and 1 deletions

View file

@ -0,0 +1,31 @@
diff --git a/imgcreate/live.py b/imgcreate/live.py
index 7678273..e9eb2ac 100644
--- a/imgcreate/live.py
+++ b/imgcreate/live.py
@@ -236,8 +236,8 @@ class LiveImageCreatorBase(LoopImageCreator):
def _generate_efiboot(self, isodir):
"""Generate EFI boot images."""
- if not glob.glob(self._instroot+"/boot/efi/EFI/*/shim.efi"):
- logging.error("Missing shim.efi, skipping efiboot.img creation.")
+ if not glob.glob(self._instroot+"/boot/efi/EFI/*/BOOT*.efi"):
+ logging.error("Missing BOOT*.efi, skipping efiboot.img creation.")
return
# XXX-BCL: does this need --label?
@@ -736,13 +736,13 @@ menu end
""" Copy the efi files into /EFI/BOOT/
If any of them are missing, return False.
requires:
- shim.efi
+ BOOT*.efi
grub.efi
fonts/unicode.pf2
"""
fail = False
missing = []
- files = [("/boot/efi/EFI/*/shim.efi", "/EFI/BOOT/BOOT%s.efi" % (self.efiarch,)),
+ files = [("/boot/efi/EFI/*/BOOT*.efi", "/EFI/BOOT/"),
("/boot/efi/EFI/*/grub2-efi/grubcd.efi", "/EFI/BOOT/grubx64.efi"),
("/boot/grub2/themes/rosa/*", "/EFI/BOOT/themes/rosa/"),
("/boot/grub2/fonts/unicode.pf2", "/EFI/BOOT/fonts/"),

View file

@ -5,7 +5,7 @@
Summary: Tools for building live CDs Summary: Tools for building live CDs
Name: livecd-tools Name: livecd-tools
Version: 21.1 Version: 21.1
Release: 13 Release: 14
Epoch: 1 Epoch: 1
License: GPLv2 License: GPLv2
Group: System/Base Group: System/Base
@ -27,6 +27,7 @@ Patch10: livecd-tools-21.1.pkg.installation.fix.patch
Patch11: livecd-tools-21.1.drop.initramfs.patch Patch11: livecd-tools-21.1.drop.initramfs.patch
Patch12: livecd-tools-21.1.efi.no.dm.luks.patch Patch12: livecd-tools-21.1.efi.no.dm.luks.patch
Patch13: livecd-tools-21.1.basic.graphics.mode.fixed.patch Patch13: livecd-tools-21.1.basic.graphics.mode.fixed.patch
Patch14: livecd-tools-21.1.shim.efi.renamed.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires: python-imgcreate = %{epoch}:%{version}-%{release} Requires: python-imgcreate = %{epoch}:%{version}-%{release}
@ -89,6 +90,7 @@ like live image or appliances.
%patch11 -p1 %patch11 -p1
%patch12 -p1 %patch12 -p1
%patch13 -p1 %patch13 -p1
%patch14 -p1
%build %build
make make