From: Michael Prokop Date: Wed, 10 Mar 2021 13:55:23 +0000 (+0100) Subject: GRUB templates: do not set root/chainloader but just exit for boot from next device X-Git-Tag: v0.38.0~3 X-Git-Url: https://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=89c43982fb5056e25caada0e5018088ad4fcbae7;hp=fada6dea0ffacc5ee41b1ae0144197f233e4ca87 GRUB templates: do not set root/chainloader but just exit for boot from next device This pretty much never works for me, while exiting GRUB switches to the next device in the boot order, so let's just "exit" GRUB and name the menu entries accordingly. Closes: https://github.com/grml/grml-live/issues/100 --- diff --git a/templates/boot/grub/addons.cfg b/templates/boot/grub/addons.cfg index 86f117f..2425f7a 100644 --- a/templates/boot/grub/addons.cfg +++ b/templates/boot/grub/addons.cfg @@ -78,7 +78,6 @@ if [ "${grub_platform}" != "efi" ] ; then fi # efi mode } -menuentry "Boot OS of first partition on first disk" { - set root=(hd0,1) - chainloader +1 +menuentry "Boot from next device" { + exit } diff --git a/templates/boot/grub/netboot.cfg b/templates/boot/grub/netboot.cfg index 66375dd..919eec9 100644 --- a/templates/boot/grub/netboot.cfg +++ b/templates/boot/grub/netboot.cfg @@ -21,7 +21,6 @@ menuentry "%GRML_NAME% Standard (%VERSION%, %ARCH%)" { initrd initrd.img } -menuentry "Boot OS of first partition on first disk" { - set root=(hd0,1) - chainloader +1 +menuentry "Boot from next device" { + exit }