GRUB templates: do not set root/chainloader but just exit for boot from next device
authorMichael Prokop <mika@grml.org>
Wed, 10 Mar 2021 13:55:23 +0000 (14:55 +0100)
committerMichael Prokop <mika@grml.org>
Wed, 10 Mar 2021 13:55:23 +0000 (14:55 +0100)
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
templates/boot/grub/netboot.cfg

index 86f117f..2425f7a 100644 (file)
@@ -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
 }
index 66375dd..919eec9 100644 (file)
@@ -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
 }