]> glassweightruler.freedombox.rocks Git - Ventoy.git/blob - INSTALL/grub/localboot.cfg
1.0.13 release
[Ventoy.git] / INSTALL / grub / localboot.cfg
1
2 if [ "$grub_platform" = "pc" ]; then
3 menuentry 'Search and 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 'Boot the 1st local disk' {
14 set root=(hd0,1)
15 chainloader +1
16 boot
17 }
18
19 menuentry 'Boot the 2nd local disk' {
20 set root=(hd1,1)
21 chainloader +1
22 boot
23 }
24
25 menuentry 'Boot the 3rd local disk' {
26 set root=(hd2,1)
27 chainloader +1
28 boot
29 }
30
31 else
32
33 menuentry 'Search and boot Windows' {
34 if search -n -s -f /EFI/Microsoft/Boot/bootmgfw.efi; then
35 terminal_output console
36 chainloader /EFI/Microsoft/Boot/bootmgfw.efi
37 boot
38 else
39 echo "Windows NOT found ..."
40 fi
41 }
42
43 menuentry 'Search and boot BOOTX64.EFI' {
44 if search -n -s -f /efi/boot/bootx64.efi; then
45 terminal_output console
46 chainloader /efi/boot/bootx64.efi
47 boot
48 else
49 echo "BOOTX64.EFI NOT found ..."
50 fi
51 }
52
53 fi
54
55 menuentry 'Return to menu [Esc]' VTOY_RET {
56 echo 'Return ...'
57 }