Fix appending signature support commit (thanks: pjones)
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
This commit is contained in:
parent
1c4e61c989
commit
9c910dfa10
@ -43,16 +43,16 @@ that verifies these signatures. You can find one at:
|
|||||||
I will be proposing this for inclusion in a future Power Architecture
|
I will be proposing this for inclusion in a future Power Architecture
|
||||||
Platform Reference (PAPR).
|
Platform Reference (PAPR).
|
||||||
---
|
---
|
||||||
util/grub-install-common.c | 18 ++++++++++++++++--
|
util/grub-install-common.c | 18 ++++++++++++++----
|
||||||
util/grub-mkimage.c | 15 +++++++++++++--
|
util/grub-mkimage.c | 15 +++++++++++++--
|
||||||
util/grub-mkimagexx.c | 39 ++++++++++++++++++++++++++++++++++++++-
|
util/grub-mkimagexx.c | 39 ++++++++++++++++++++++++++++++++++++++-
|
||||||
util/mkimage.c | 13 +++++++------
|
util/mkimage.c | 13 +++++++------
|
||||||
include/grub/util/install.h | 8 ++++++--
|
include/grub/util/install.h | 8 ++++++--
|
||||||
include/grub/util/mkimage.h | 4 ++--
|
include/grub/util/mkimage.h | 4 ++--
|
||||||
6 files changed, 82 insertions(+), 15 deletions(-)
|
6 files changed, 80 insertions(+), 17 deletions(-)
|
||||||
|
|
||||||
diff --git a/util/grub-install-common.c b/util/grub-install-common.c
|
diff --git a/util/grub-install-common.c b/util/grub-install-common.c
|
||||||
index 4e212e690c5..aab2a941f85 100644
|
index 4e212e690c5..a74fee16e22 100644
|
||||||
--- a/util/grub-install-common.c
|
--- a/util/grub-install-common.c
|
||||||
+++ b/util/grub-install-common.c
|
+++ b/util/grub-install-common.c
|
||||||
@@ -461,10 +461,12 @@ static size_t npubkeys;
|
@@ -461,10 +461,12 @@ static size_t npubkeys;
|
||||||
@ -81,22 +81,24 @@ index 4e212e690c5..aab2a941f85 100644
|
|||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -665,7 +673,13 @@ grub_install_make_image_wrap_file (const char *dir, const char *prefix,
|
@@ -661,11 +669,13 @@ grub_install_make_image_wrap_file (const char *dir, const char *prefix,
|
||||||
|
" --output '%s' "
|
||||||
|
" --dtb '%s' "
|
||||||
|
"--sbat '%s' "
|
||||||
|
- "--format '%s' --compression '%s' %s %s %s\n",
|
||||||
|
+ "--format '%s' --compression '%s' "
|
||||||
|
+ "--appended-signature-size %zu %s %s %s\n",
|
||||||
dir, prefix,
|
dir, prefix,
|
||||||
outname, dtb ? : "", sbat ? : "", mkimage_target,
|
outname, dtb ? : "", sbat ? : "", mkimage_target,
|
||||||
compnames[compression], note ? "--note" : "",
|
- compnames[compression], note ? "--note" : "",
|
||||||
- disable_shim_lock ? "--disable-shim-lock" : "", s);
|
- disable_shim_lock ? "--disable-shim-lock" : "", s);
|
||||||
+ disable_shim_lock ? "--disable-shim-lock" : "",
|
|
||||||
+ "--format '%s' --compression '%s' "
|
|
||||||
+ "--appended-signature-size %zu %s %s\n",
|
|
||||||
+ dir, prefix,
|
|
||||||
+ outname, dtb ? : "", mkimage_target,
|
|
||||||
+ compnames[compression], appsig_size,
|
+ compnames[compression], appsig_size,
|
||||||
|
+ disable_shim_lock ? "--disable-shim-lock" : "",
|
||||||
+ note ? "--note" : "", s);
|
+ note ? "--note" : "", s);
|
||||||
free (s);
|
free (s);
|
||||||
|
|
||||||
tgt = grub_install_get_image_target (mkimage_target);
|
tgt = grub_install_get_image_target (mkimage_target);
|
||||||
@@ -675,7 +689,7 @@ grub_install_make_image_wrap_file (const char *dir, const char *prefix,
|
@@ -675,7 +685,7 @@ grub_install_make_image_wrap_file (const char *dir, const char *prefix,
|
||||||
grub_install_generate_image (dir, prefix, fp, outname,
|
grub_install_generate_image (dir, prefix, fp, outname,
|
||||||
modules.entries, memdisk_path,
|
modules.entries, memdisk_path,
|
||||||
pubkeys, npubkeys, config_path, tgt,
|
pubkeys, npubkeys, config_path, tgt,
|
||||||
|
@ -33,7 +33,7 @@ index 355a43844ac..b81ac0ae46c 100644
|
|||||||
|
|
||||||
pseudo_file.fs = &pseudo_fs;
|
pseudo_file.fs = &pseudo_fs;
|
||||||
diff --git a/util/grub-install-common.c b/util/grub-install-common.c
|
diff --git a/util/grub-install-common.c b/util/grub-install-common.c
|
||||||
index aab2a941f85..422f82362c7 100644
|
index a74fee16e22..2d9693ffeb7 100644
|
||||||
--- a/util/grub-install-common.c
|
--- a/util/grub-install-common.c
|
||||||
+++ b/util/grub-install-common.c
|
+++ b/util/grub-install-common.c
|
||||||
@@ -460,6 +460,8 @@ static char **pubkeys;
|
@@ -460,6 +460,8 @@ static char **pubkeys;
|
||||||
@ -82,7 +82,7 @@ index aab2a941f85..422f82362c7 100644
|
|||||||
for (md = modules.entries; *md; md++)
|
for (md = modules.entries; *md; md++)
|
||||||
{
|
{
|
||||||
*p++ = '\'';
|
*p++ = '\'';
|
||||||
@@ -688,7 +706,9 @@ grub_install_make_image_wrap_file (const char *dir, const char *prefix,
|
@@ -684,7 +702,9 @@ grub_install_make_image_wrap_file (const char *dir, const char *prefix,
|
||||||
|
|
||||||
grub_install_generate_image (dir, prefix, fp, outname,
|
grub_install_generate_image (dir, prefix, fp, outname,
|
||||||
modules.entries, memdisk_path,
|
modules.entries, memdisk_path,
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
Name: grub2
|
Name: grub2
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 2.06
|
Version: 2.06
|
||||||
Release: 16%{?dist}
|
Release: 17%{?dist}
|
||||||
Summary: Bootloader with support for Linux, Multiboot and more
|
Summary: Bootloader with support for Linux, Multiboot and more
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: http://www.gnu.org/software/grub/
|
URL: http://www.gnu.org/software/grub/
|
||||||
@ -525,6 +525,9 @@ mv ${EFI_HOME}/grub.cfg.stb ${EFI_HOME}/grub.cfg
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 24 2022 Robbie Harwood <rharwood@redhat.com> - 2.06-17
|
||||||
|
- Fix appended signature support commit (thanks: pjones)
|
||||||
|
|
||||||
* Thu Feb 24 2022 Robbie Harwood <rharwood@redhat.com> - 2.06-16
|
* Thu Feb 24 2022 Robbie Harwood <rharwood@redhat.com> - 2.06-16
|
||||||
- Suffer through updating gnulib
|
- Suffer through updating gnulib
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user