X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/a5c706511b84eb0f9e5f042f18f2f3c9602977c4..a1ddade13cb95f296bcd636258a9a293b34ceef0:/INSTALL/grub/localboot.cfg diff --git a/INSTALL/grub/localboot.cfg b/INSTALL/grub/localboot.cfg index e9893e4..0afb344 100644 --- a/INSTALL/grub/localboot.cfg +++ b/INSTALL/grub/localboot.cfg @@ -1,6 +1,6 @@ if [ "$grub_platform" = "pc" ]; then - menuentry 'Search and boot Windows' { + menuentry 'Search and boot Windows' --class=boot_windows { if search -n -s -f /bootmgr; then ntldr /bootmgr elif search -n -s -f /ntldr; then @@ -10,19 +10,27 @@ if [ "$grub_platform" = "pc" ]; then fi } - menuentry 'Boot the 1st local disk' { + menuentry 'Search and boot Grub4dos' --class=boot_g4d { + if search -n -s -f /grldr; then + ntldr /grldr + else + echo "Grub4dos NOT found ..." + fi + } + + menuentry 'Boot the 1st local disk' --class=boot_disk { set root=(hd0,1) chainloader +1 boot } - menuentry 'Boot the 2nd local disk' { + menuentry 'Boot the 2nd local disk' --class=boot_disk { set root=(hd1,1) chainloader +1 boot } - menuentry 'Boot the 3rd local disk' { + menuentry 'Boot the 3rd local disk' --class=boot_disk { set root=(hd2,1) chainloader +1 boot @@ -30,7 +38,7 @@ if [ "$grub_platform" = "pc" ]; then else - menuentry 'Search and boot Windows' { + menuentry 'Search and boot Windows' --class=boot_windows { if search -n -s -f /EFI/Microsoft/Boot/bootmgfw.efi; then terminal_output console chainloader /EFI/Microsoft/Boot/bootmgfw.efi @@ -40,7 +48,7 @@ else fi } - menuentry 'Search and boot BOOTX64.EFI' { + menuentry 'Search and boot BOOTX64.EFI' --class=boot_uefi { if search -n -s -f /efi/boot/bootx64.efi; then terminal_output console chainloader /efi/boot/bootx64.efi @@ -52,6 +60,6 @@ else fi -menuentry 'Return to menu [Esc]' VTOY_RET { +menuentry 'Return to menu [Esc]' --class=vtoyret VTOY_RET { echo 'Return ...' }