Update for shim-0.3

This commit is contained in:
Peter Jones 2013-05-30 08:40:17 -04:00
parent b4e78d5f20
commit 87983bd45d
5 changed files with 19 additions and 43 deletions

5
.gitignore vendored
View File

@ -1,3 +1,2 @@
/shim-0.1.tar.bz2
/shim-0.2.tar.bz2
/mokutil-0.1.0.tar.bz2
/mokutil-*.tar.bz2
/shim-*.tar.bz2

View File

@ -1,25 +1,26 @@
From aedb12117d5de52b3b2a49008e5e052f4369bda9 Mon Sep 17 00:00:00 2001
From: Matthew Garrett <mjg59@srcf.ucam.org>
Date: Mon, 26 Nov 2012 19:31:05 -0500
From 8f20d5f78a67675ac8920e0ba67581563b921465 Mon Sep 17 00:00:00 2001
From: Peter Jones <pjones@redhat.com>
Date: Tue, 14 May 2013 13:12:43 -0400
Subject: [PATCH] Fix grub path
Signed-off-by: Peter Jones <shim-owner@fedoraproject.org>
---
shim.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/shim.c b/shim.c
index 4d490b9..88c8209 100644
index f2b8f1d..d28e0cd 100644
--- a/shim.c
+++ b/shim.c
@@ -42,7 +42,7 @@
#include "netboot.h"
@@ -43,7 +43,7 @@
#include "shim_cert.h"
#include "ucs2.h"
-#define SECOND_STAGE L"\\grub.efi"
+#define SECOND_STAGE L"\\grubx64.efi"
-#define DEFAULT_LOADER L"\\grub.efi"
+#define DEFAULT_LOADER L"\\grubx64.efi"
#define FALLBACK L"\\fallback.efi"
#define MOK_MANAGER L"\\MokManager.efi"
static EFI_SYSTEM_TABLE *systab;
--
1.8.0
1.8.2.1

View File

@ -1,25 +0,0 @@
From a949ce8f56363b48fa32fd4b0c6e656e95b08e06 Mon Sep 17 00:00:00 2001
From: Fedora Ninjas <shim-owner@fedoraproject.org>
Date: Wed, 28 Nov 2012 12:14:50 -0500
Subject: [PATCH] Remove extraneous debug code
---
shim.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/shim.c b/shim.c
index 88c8209..d0acd0a 100644
--- a/shim.c
+++ b/shim.c
@@ -416,8 +416,6 @@ static BOOLEAN secure_mode (void)
UINT8 sb, setupmode;
UINT32 attributes;
- return TRUE;
-
if (insecure_mode)
return FALSE;
--
1.8.0

View File

@ -1,6 +1,6 @@
Name: shim
Version: 0.2
Release: 3%{?dist}.pj0
Version: 0.3
Release: 1%{?dist}
Summary: First-stage UEFI bootloader
License: BSD
@ -26,7 +26,8 @@ Patch0: 0001-Fix-grub-path.patch
Patch2: mokutil-correct-moklistrt-size.patch
BuildRequires: gnu-efi git openssl-devel openssl
BuildRequires: pesign >= 0.99-9
BuildRequires: pesign >= 0.104-1
BuildRequires: gnu-efi >= 3.0s
# Shim uses OpenSSL, but cannot use the system copy as the UEFI ABI is not
# compatible with SysV (there's no red zone under UEFI) and there isn't a
@ -89,7 +90,7 @@ rm -rf $RPM_BUILD_ROOT
install -D -d -m 0755 $RPM_BUILD_ROOT%{_datadir}/shim/
install -m 0644 shim.efi $RPM_BUILD_ROOT%{_datadir}/shim/shim.efi
install -m 0644 shim.sig $RPM_BUILD_ROOT%{_datadir}/shim/shim.sig
install -m 0644 fallback.efi $RPM_BUILD_ROOT%{_datadir}/shim/fallback.efi
%pesign -s -i fallback.efi -o $RPM_BUILD_ROOT%{_datadir}/shim/fallback.efi
install -D -d -m 0755 $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/
%pesign -s -i MokManager.efi -o $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/MokManager.efi
cd mokutil-%{mokutilver}

View File

@ -1,2 +1,2 @@
b13a2fa37897e1508e871a5bf0a87369 shim-0.2.tar.bz2
485218c423aef15de46d55d6de48c98b mokutil-0.1.0.tar.bz2
f31a82c04df23aef0ef99b658fb61306 shim-0.3.tar.bz2