|
|
80913e |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
80913e |
From: Colin Watson <cjwatson@ubuntu.com>
|
|
|
80913e |
Date: Wed, 9 Jan 2019 14:54:39 +0000
|
|
|
80913e |
Subject: [PATCH] pgp: Fix emu build and tests after pgp module renaming
|
|
|
80913e |
|
|
|
80913e |
Commit b07feb8746c3bb845e3f0d33d37c0bded704d14d (verifiers: Rename
|
|
|
80913e |
verify module to pgp module) renamed the "verify" module to "pgp", but
|
|
|
80913e |
the GRUB_MOD_INIT and GRUB_MOD_FINI macros were left as "verify", which
|
|
|
80913e |
broke the emu target build; and file_filter_test still referred to the
|
|
|
80913e |
now non-existent "verify" module. Fix both of these.
|
|
|
80913e |
|
|
|
80913e |
Signed-off-by: Colin Watson <cjwatson@ubuntu.com>
|
|
|
80913e |
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
|
|
|
80913e |
(cherry picked from commit ed087f0460516737e174222f01e2bf6ccbd45674)
|
|
|
80913e |
Signed-off-by: Daniel Axtens <dja@axtens.net>
|
|
|
80913e |
---
|
|
|
80913e |
grub-core/commands/pgp.c | 4 ++--
|
|
|
80913e |
tests/file_filter_test.in | 2 +-
|
|
|
80913e |
2 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
80913e |
|
|
|
80913e |
diff --git a/grub-core/commands/pgp.c b/grub-core/commands/pgp.c
|
|
|
b32e65 |
index 29e74a640..5c913c2e2 100644
|
|
|
80913e |
--- a/grub-core/commands/pgp.c
|
|
|
80913e |
+++ b/grub-core/commands/pgp.c
|
|
|
80913e |
@@ -950,7 +950,7 @@ struct grub_file_verifier grub_pubkey_verifier =
|
|
|
80913e |
static grub_extcmd_t cmd, cmd_trust;
|
|
|
80913e |
static grub_command_t cmd_distrust, cmd_list;
|
|
|
80913e |
|
|
|
80913e |
-GRUB_MOD_INIT(verify)
|
|
|
80913e |
+GRUB_MOD_INIT(pgp)
|
|
|
80913e |
{
|
|
|
80913e |
const char *val;
|
|
|
80913e |
struct grub_module_header *header;
|
|
|
80913e |
@@ -1009,7 +1009,7 @@ GRUB_MOD_INIT(verify)
|
|
|
80913e |
grub_verifier_register (&grub_pubkey_verifier);
|
|
|
80913e |
}
|
|
|
80913e |
|
|
|
80913e |
-GRUB_MOD_FINI(verify)
|
|
|
80913e |
+GRUB_MOD_FINI(pgp)
|
|
|
80913e |
{
|
|
|
80913e |
grub_verifier_unregister (&grub_pubkey_verifier);
|
|
|
80913e |
grub_unregister_extcmd (cmd);
|
|
|
80913e |
diff --git a/tests/file_filter_test.in b/tests/file_filter_test.in
|
|
|
b32e65 |
index bfb638227..ed6abcb5a 100644
|
|
|
80913e |
--- a/tests/file_filter_test.in
|
|
|
80913e |
+++ b/tests/file_filter_test.in
|
|
|
80913e |
@@ -19,7 +19,7 @@ grubshell=@builddir@/grub-shell
|
|
|
80913e |
|
|
|
80913e |
. "@builddir@/grub-core/modinfo.sh"
|
|
|
80913e |
|
|
|
80913e |
-filters="gzio xzio lzopio verify"
|
|
|
80913e |
+filters="gzio xzio lzopio pgp"
|
|
|
80913e |
modules="cat mpi"
|
|
|
80913e |
|
|
|
80913e |
for mod in $(cut -d ' ' -f 2 "@builddir@/grub-core/crypto.lst" | sort -u); do
|