]> glassweightruler.freedombox.rocks Git - Ventoy.git/blob - INSTALL/grub/localboot.cfg
1.0.16 release
[Ventoy.git] / INSTALL / grub / localboot.cfg
1
2 if [ "$grub_platform" = "pc" ]; then
3 menuentry 'Search and boot Windows' --class=boot_windows {
4 if search -n -s -f /bootmgr; then
5 ntldr /bootmgr
6 elif search -n -s -f /NTLDR; then
7 ntldr /NTLDR
8 else
9 echo "Windows NOT found ..."
10 fi
11 }
12
13 menuentry 'Search and boot Grub4dos' --class=boot_g4d {
14 if search -n -s -f /grldr; then
15 ntldr /grldr
16 else
17 echo "Grub4dos NOT found ..."
18 fi
19 }
20
21 menuentry 'Boot the 1st local disk' --class=boot_disk {
22 set root=(hd0,1)
23 chainloader +1
24 boot
25 }
26
27 menuentry 'Boot the 2nd local disk' --class=boot_disk {
28 set root=(hd1,1)
29 chainloader +1
30 boot
31 }
32
33 menuentry 'Boot the 3rd local disk' --class=boot_disk {
34 set root=(hd2,1)
35 chainloader +1
36 boot
37 }
38
39 else
40
41 menuentry 'Search and boot Windows' --class=boot_windows {
42 if search -n -s -f /EFI/Microsoft/Boot/bootmgfw.efi; then
43 terminal_output console
44 chainloader /EFI/Microsoft/Boot/bootmgfw.efi
45 boot
46 else
47 echo "Windows NOT found ..."
48 fi
49 }
50
51 menuentry 'Search and boot BOOTX64.EFI' --class=boot_uefi {
52 if search -n -s -f /efi/boot/bootx64.efi; then
53 terminal_output console
54 chainloader /efi/boot/bootx64.efi
55 boot
56 else
57 echo "BOOTX64.EFI NOT found ..."
58 fi
59 }
60
61 fi
62
63 menuentry 'Return to previous menu [Esc]' --class=vtoyret VTOY_RET {
64 echo 'Return ...'
65 }