mirror of
https://git.proxmox.com/git/grub2
synced 2025-10-21 17:21:02 +00:00
29 lines
905 B
Diff
29 lines
905 B
Diff
From 22fb5cb563a439aab34fd9b4ce33e10ee54c03e1 Mon Sep 17 00:00:00 2001
|
|
From: Colin Watson <cjwatson@ubuntu.com>
|
|
Date: Mon, 13 Jan 2014 12:13:19 +0000
|
|
Subject: Make linuxefi refuse to boot without shim
|
|
|
|
This is only intended as a temporary measure.
|
|
|
|
Forwarded: not-needed
|
|
Last-Update: 2013-01-29
|
|
|
|
Patch-Name: linuxefi_require_shim.patch
|
|
---
|
|
grub-core/loader/i386/efi/linux.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/grub-core/loader/i386/efi/linux.c b/grub-core/loader/i386/efi/linux.c
|
|
index a124c5e..26a958c 100644
|
|
--- a/grub-core/loader/i386/efi/linux.c
|
|
+++ b/grub-core/loader/i386/efi/linux.c
|
|
@@ -63,7 +63,7 @@ grub_linuxefi_secure_validate (void *data, grub_uint32_t size)
|
|
if (!shim_lock)
|
|
{
|
|
grub_dprintf ("linuxefi", "shim not available\n");
|
|
- return 1;
|
|
+ return 0;
|
|
}
|
|
|
|
grub_dprintf ("linuxefi", "Asking shim to verify kernel signature\n");
|