]> glassweightruler.freedombox.rocks Git - Ventoy.git/blob - INSTALL/grub/localboot.cfg
added Spanish (Latinoamérica) translation (#1865)
[Ventoy.git] / INSTALL / grub / localboot.cfg
1
2 if [ "$grub_platform" = "pc" ]; then
3 menuentry 'Search and boot Windows' --class=boot_windows --class=F4boot {
4
5 set partid=3
6 while [ $partid -le 128 ]; do
7 if vt_check_part_exist $partid; then
8 for bt in bootmgr BOOTMGR Bootmgr BootMGR; do
9 if [ -f ($vtoydev,$partid)/$bt ]; then
10 set root=($vtoydev,$partid)
11 ntldr /$bt
12 boot
13 fi
14 done
15 else
16 break
17 fi
18 vt_incr partid 1
19 done
20
21 if search -n -s -f /Boot/BCD; then
22 for bt in bootmgr BOOTMGR Bootmgr BootMGR; do
23 if [ -f /$bt ]; then
24 if regexp '^hd0' $root; then
25 ntldr /$bt
26 else
27 drivemap -s hd0 $root
28 ntldr /$bt
29 fi
30 break
31 fi
32 done
33 elif search -n -s -f /NTDETECT.COM; then
34 drivemap -s hd0 $root
35 ntldr /ntldr
36 else
37 echo "Windows NOT found ..."
38 fi
39 }
40
41 menuentry 'Search and boot Grub4dos' --class=boot_g4d --class=F4boot {
42 if search -n -s -f /grldr; then
43 ntldr /grldr
44 else
45 echo "Grub4dos NOT found ..."
46 fi
47 }
48
49 menuentry 'Boot the 1st local disk' --class=boot_disk --class=F4boot {
50 set root=(hd0,1)
51 chainloader +1
52 boot
53 }
54
55 menuentry 'Boot the 2nd local disk' --class=boot_disk --class=F4boot {
56 set root=(hd1,1)
57 chainloader +1
58 boot
59 }
60
61 menuentry 'Boot the 3rd local disk' --class=boot_disk --class=F4boot {
62 set root=(hd2,1)
63 chainloader +1
64 boot
65 }
66
67 else
68
69 menuentry 'Search and boot Windows' --class=boot_windows --class=F4boot {
70
71 set partid=3
72 while [ $partid -le 128 ]; do
73 if vt_check_part_exist $partid; then
74 if [ -f ($vtoydev,$partid)/EFI/Microsoft/Boot/bootmgfw.efi ]; then
75 set root=($vtoydev,$partid)
76 terminal_output console
77 chainloader /EFI/Microsoft/Boot/bootmgfw.efi
78 boot
79 elif [ -f ($vtoydev,$partid)/efi/Microsoft/Boot/bootmgfw.efi ]; then
80 set root=($vtoydev,$partid)
81 terminal_output console
82 chainloader /efi/Microsoft/Boot/bootmgfw.efi
83 boot
84 fi
85 else
86 break
87 fi
88 vt_incr partid 1
89 done
90
91 if search -n -s -f /EFI/Microsoft/Boot/bootmgfw.efi; then
92 terminal_output console
93 chainloader /EFI/Microsoft/Boot/bootmgfw.efi
94 boot
95 elif search -n -s -f /efi/Microsoft/Boot/bootmgfw.efi; then
96 terminal_output console
97 chainloader /efi/Microsoft/Boot/bootmgfw.efi
98 boot
99 else
100 echo "Windows NOT found ..."
101 fi
102 }
103
104 if [ "$grub_cpu" = "i386" ]; then
105 menuentry 'Search and boot BOOTIA32.EFI' --class=boot_uefi --class=F4boot {
106 set VTOY_SEARCH_NO_VTOYEFI=1
107 if search -n -s -f /efi/boot/bootia32.efi; then
108 unset VTOY_SEARCH_NO_VTOYEFI
109 terminal_output console
110 chainloader /efi/boot/bootia32.efi
111 boot
112 else
113 unset VTOY_SEARCH_NO_VTOYEFI
114 echo "BOOTIA32.EFI NOT found ..."
115 fi
116 }
117
118 menuentry 'Search and boot xorboot' --class=boot_xorboot --class=F4boot {
119 set VTOY_SEARCH_NO_VTOYEFI=1
120 if search -n -s -f /efi/xorboot/xorboot32.xor; then
121 unset VTOY_SEARCH_NO_VTOYEFI
122 terminal_output console
123 if [ -f /efi/xorboot/bootia32.efi ]; then
124 chainloader /efi/xorboot/bootia32.efi
125 elif [ -f /efi/xorboot/xorboot.efi ]; then
126 chainloader /efi/xorboot/xorboot.efi
127 fi
128 boot
129 else
130 unset VTOY_SEARCH_NO_VTOYEFI
131 echo "xorboot NOT found ..."
132 fi
133 }
134 elif [ "$grub_cpu" = "arm64" ]; then
135 menuentry 'Search and boot BOOTAA64.EFI' --class=boot_uefi --class=F4boot {
136 set VTOY_SEARCH_NO_VTOYEFI=1
137 if search -n -s -f /efi/boot/bootaa64.efi; then
138 unset VTOY_SEARCH_NO_VTOYEFI
139 terminal_output console
140 chainloader /efi/boot/bootaa64.efi
141 boot
142 else
143 unset VTOY_SEARCH_NO_VTOYEFI
144 echo "BOOTAA64.EFI NOT found ..."
145 fi
146 }
147 else
148 menuentry 'Search and boot BOOTX64.EFI' --class=boot_uefi --class=F4boot {
149 set VTOY_SEARCH_NO_VTOYEFI=1
150 if search -n -s -f /efi/boot/bootx64.efi; then
151 unset VTOY_SEARCH_NO_VTOYEFI
152 terminal_output console
153 chainloader /efi/boot/bootx64.efi
154 boot
155 else
156 unset VTOY_SEARCH_NO_VTOYEFI
157 echo "BOOTX64.EFI NOT found ..."
158 fi
159 }
160
161 menuentry 'Search and boot xorboot' --class=boot_xorboot --class=F4boot {
162 set VTOY_SEARCH_NO_VTOYEFI=1
163 if search -n -s -f /efi/xorboot/xorboot.xor; then
164 unset VTOY_SEARCH_NO_VTOYEFI
165 terminal_output console
166 if [ -f /efi/xorboot/bootx64.efi ]; then
167 chainloader /efi/xorboot/bootx64.efi
168 elif [ -f /efi/xorboot/xorboot.efi ]; then
169 chainloader /efi/xorboot/xorboot.efi
170 fi
171 boot
172 else
173 unset VTOY_SEARCH_NO_VTOYEFI
174 echo "xorboot NOT found ..."
175 fi
176 }
177 fi
178
179
180 fi
181
182 menuentry 'Return to previous menu [Esc]' --class=vtoyret VTOY_RET {
183 echo 'Return ...'
184 }