From 89c43982fb5056e25caada0e5018088ad4fcbae7 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Wed, 10 Mar 2021 14:55:23 +0100 Subject: [PATCH] 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 --- templates/boot/grub/addons.cfg | 5 ++--- templates/boot/grub/netboot.cfg | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) 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 } -- 2.1.4