summaryrefslogtreecommitdiff
path: root/shim.c
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2013-10-03 11:01:36 -0400
committerPeter Jones <pjones@redhat.com>2013-10-03 11:11:09 -0400
commitfc986307fb200fdf493b9dd083ad39ae3561b0c9 (patch)
treed1ad0bc3618b4fb85d1972a2ee197a1611c4daca /shim.c
parentd83213cec3b1cd59a442f1f3fe8fec7c10936fed (diff)
downloadefi-boot-shim-fc986307fb200fdf493b9dd083ad39ae3561b0c9.tar.gz
efi-boot-shim-fc986307fb200fdf493b9dd083ad39ae3561b0c9.zip
Add ident-like blobs to shim.efi for version checking.
I feel dirty.
Diffstat (limited to 'shim.c')
-rw-r--r--shim.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/shim.c b/shim.c
index 690cb091..873fd2ed 100644
--- a/shim.c
+++ b/shim.c
@@ -48,6 +48,7 @@
#include "efiauthenticated.h"
#include "security_policy.h"
#include "console.h"
+#include "version.h"
#define FALLBACK L"\\fallback.efi"
#define MOK_MANAGER L"\\MokManager.efi"
@@ -1668,6 +1669,9 @@ EFI_STATUS efi_main (EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *passed_systab)
if (!EFI_ERROR(efi_status))
verbose = verbose_check;
+ if (verbose)
+ console_notify_ascii(shim_version);
+
/* Set the second stage loader */
set_second_stage (image_handle);