diff --git a/efibootmgr-fix-usage-of-efi_loadopt_path-again.patch b/efibootmgr-fix-usage-of-efi_loadopt_path-again.patch new file mode 100644 index 0000000..764d3e7 --- /dev/null +++ b/efibootmgr-fix-usage-of-efi_loadopt_path-again.patch @@ -0,0 +1,26 @@ +From f5e09ec26bd03490903330f121b18b8aaa56cf85 Mon Sep 17 00:00:00 2001 +From: Peter Jones +Date: Tue, 24 May 2016 11:33:20 -0400 +Subject: [PATCH] efibootmgr: fix usage of efi_loadopt_path() /again/. + +Signed-off-by: Peter Jones +--- + 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 + diff --git a/efibootmgr.changes b/efibootmgr.changes index a036a87..157fd56 100644 --- a/efibootmgr.changes +++ b/efibootmgr.changes @@ -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 diff --git a/efibootmgr.spec b/efibootmgr.spec index fae18f2..f257fc0 100644 --- a/efibootmgr.spec +++ b/efibootmgr.spec @@ -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