Accepting request 420697 from home:arvidjaar:bnc:993458

add efibootmgr-fix-usage-of-efi_loadopt_path-again.patch - fix
efibootmgr -v with new efivar (boo#993458)

efi_loadopt_path requires full length, not just pathlen. Patch adapted
from upstream.

OBS-URL: https://build.opensuse.org/request/show/420697
OBS-URL: https://build.opensuse.org/package/show/Base:System/efibootmgr?expand=0&rev=34
This commit is contained in:
Raymund Will 2016-08-23 10:22:58 +00:00 committed by Git OBS Bridge
parent 7011c31ba0
commit 57037290b1
3 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,26 @@
From f5e09ec26bd03490903330f121b18b8aaa56cf85 Mon Sep 17 00:00:00 2001
From: Peter Jones <pjones@redhat.com>
Date: Tue, 24 May 2016 11:33:20 -0400
Subject: [PATCH] efibootmgr: fix usage of efi_loadopt_path() /again/.
Signed-off-by: Peter Jones <pjones@redhat.com>
---
src/efibootmgr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/efibootmgr.c b/src/efibootmgr.c
index baefa68..199eb28 100644
--- a/src/efibootmgr/efibootmgr.c
+++ b/src/efibootmgr/efibootmgr.c
@@ -848,7 +848,7 @@ show_boot_vars()
pathlen = efi_loadopt_pathlen(load_option,
boot->data_size);
- dp = efi_loadopt_path(load_option, pathlen);
+ dp = efi_loadopt_path(load_option, boot->data_size);
rc = efidp_format_device_path(text_path, text_path_len,
dp, pathlen);
if (rc < 0)
--
1.9.1

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Aug 20 16:17:42 UTC 2016 - arvidjaar@gmail.com
- add efibootmgr-fix-usage-of-efi_loadopt_path-again.patch - fix
efibootmgr -v with new efivar (boo#993458)
-------------------------------------------------------------------
Wed Jul 13 04:42:38 UTC 2016 - glin@suse.com

View File

@ -27,6 +27,7 @@ Source: https://github.com/rhinstaller/efibootmgr/releases/download/efib
Patch1: %{name}-derhat.diff
Patch2: %{name}-check-boot-order.diff
Patch3: %{name}-fix-efivar-0.24.patch
Patch4: %{name}-fix-usage-of-efi_loadopt_path-again.patch
BuildRequires: efivar-devel
BuildRequires: pciutils-devel
BuildRequires: pkg-config
@ -45,6 +46,7 @@ information about the EFI can be found at
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%build
LOADER="grub.efi" # default loader