From: Michael Prokop Date: Mon, 16 Oct 2023 18:24:12 +0000 (+0200) Subject: templates/boot/grub/addons: use chainloader instead of linuxefi X-Git-Tag: v0.47.0~1 X-Git-Url: http://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=e57c3ad94e5fc7a2a4e83ef6c80c0caeb5eedea6 templates/boot/grub/addons: use chainloader instead of linuxefi As of grub2 2.12~rc1-1 the linuxefi module is no longer available: | grub2 (2.12~rc1-1) experimental; urgency=medium | | [ Julian Andres Klode ] | * New upstream version, 2.12~rc1 | * build-efi-images: Drop linuxefi, using new loaders now | [...] So loading the memtest EFI file then fails with: | error: can't find command `linuxefi'. Use chainloader instead, to boot into the memtest EFI. --- diff --git a/templates/boot/grub/addons.cfg b/templates/boot/grub/addons.cfg index a96c780..5aea931 100644 --- a/templates/boot/grub/addons.cfg +++ b/templates/boot/grub/addons.cfg @@ -10,13 +10,13 @@ if [ "${grub_platform}" == "efi" ] ; then if cpuid -l ; then if test -e /boot/addons/memtest86+x64.efi ; then menuentry "Memory test (memtest86+x64.efi)" { - linuxefi /boot/addons/memtest86+x64.efi + chainloader /boot/addons/memtest86+x64.efi } fi else # assume i386 if test -e /boot/addons/memtest86+ia32.efi ; then menuentry "Memory test (memtest86+ia32.efi)" { - linuxefi /boot/addons/memtest86+ia32.efi + chainloader /boot/addons/memtest86+ia32.efi } fi fi