From: Julian Andres Klode Date: Wed, 19 Jul 2023 13:52:09 +0000 (+0200) Subject: Disable fallback to legacy mode if shim is loaded on x86 archs X-Git-Tag: archive/raspbian/2.14_git20250718.0e36779-2+rpi1^2~18 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3d588d1fbb41bab8e6601a002886eb8642c1ef79;p=grub2.git Disable fallback to legacy mode if shim is loaded on x86 archs Gbp-Pq: Topic secure-boot Gbp-Pq: Name disable-efi-fallback-to-legacy.patch --- diff --git a/grub-core/loader/efi/linux.c b/grub-core/loader/efi/linux.c index 2c7c874..41d1728 100644 --- a/grub-core/loader/efi/linux.c +++ b/grub-core/loader/efi/linux.c @@ -473,22 +473,6 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)), grub_dl_ref (my_mod); - if (grub_is_using_legacy_shim_lock_protocol () == true) - { -#if defined(__i386__) || defined(__x86_64__) - grub_dprintf ("linux", "using legacy shim_lock protocol, falling back to legacy Linux kernel loader\n"); - - err = grub_cmd_linux_x86_legacy (cmd, argc, argv); - - if (err == GRUB_ERR_NONE) - return GRUB_ERR_NONE; - else - goto fail; -#else - grub_dprintf ("linux", "using legacy shim_lock protocol on non-x86, only db verifiable kernels will work\n"); -#endif - } - if (argc == 0) { grub_error (GRUB_ERR_BAD_ARGUMENT, N_("filename expected"));