]> glassweightruler.freedombox.rocks Git - Ventoy.git/blob - INSTALL/grub/debug.cfg
Update languages.json (#1563)
[Ventoy.git] / INSTALL / grub / debug.cfg
1
2 source $prefix/power.cfg
3 source $prefix/hwinfo.cfg
4 source $prefix/keyboard.cfg
5
6 submenu "Resolution Configuration" --class=debug_resolution --class=F5tool {
7 menuentry 'Return to previous menu [Esc]' --class=vtoyret VTOY_RET {
8 echo 'Return ...'
9 }
10
11 vt_update_cur_video_mode VT_CUR_MODE
12 set vdid=0
13 while [ $vdid -lt $VTOY_VIDEO_MODE_NUM ]; do
14 vt_get_video_mode $vdid vtCurMode
15
16 unset vtActive
17 if [ "$vtCurMode" = "$VT_CUR_MODE" ]; then
18 set vtActive="[*]"
19 fi
20
21 menuentry "$vtCurMode $vtActive" --class=debug_videomode --class=debug_resolution --class=F5tool VTOY_RUN_RET {
22 terminal_output console
23 set gfxmode=$1
24 terminal_output gfxterm
25 }
26
27 vt_incr vdid 1
28 done
29 }
30
31 submenu "Screen Display Mode" --class=debug_screen_mode --class=F5tool {
32 menuentry 'Force Text Mode' --class=debug_text_mode --class=debug_screen_mode --class=F5tool {
33 terminal_output console
34 }
35 menuentry 'Force Graphics Mode' --class=debug_gui_mode --class=debug_screen_mode --class=F5tool {
36 terminal_output gfxterm
37 }
38 menuentry 'Return to previous menu [Esc]' --class=vtoyret VTOY_RET {
39 echo 'Return ...'
40 }
41 }
42
43 if [ $VTOY_THEME_COUNT -gt 1 ]; then
44 submenu "Theme Select" --class=debug_theme_select --class=F5tool {
45 vt_select_theme_cfg
46 }
47 fi
48
49 if [ "$grub_platform" != "pc" ]; then
50 submenu 'Ventoy UEFI Utilities' --class=debug_util --class=F5tool {
51 menuentry 'Show EFI Drivers' --class=debug_util_efidrv --class=debug_util --class=F5tool {
52 vt_push_pager
53 chainloader ${vtoy_path}/vtoyutil_${VTOY_EFI_ARCH}.efi env_param=${env_param} ${vtdebug_flag} feature=show_efi_drivers
54 boot
55 vt_pop_pager
56 echo -e "\npress ENTER to exit ..."
57 read vtInputKey
58 }
59
60 menuentry 'Fixup Windows BlinitializeLibrary Failure' --class=debug_util_blinit --class=debug_util --class=F5tool {
61 chainloader ${vtoy_path}/vtoyutil_${VTOY_EFI_ARCH}.efi env_param=${env_param} ${vtdebug_flag} feature=fix_windows_mmap
62 boot
63 echo -e "\npress ENTER to exit ..."
64 read vtInputKey
65 }
66
67 menuentry 'Return to previous menu [Esc]' --class=vtoyret VTOY_RET {
68 echo 'Return ...'
69 }
70 }
71 fi
72
73
74 submenu 'Check plugin json configuration (ventoy.json)' --class=debug_json --class=F5tool {
75 menuentry 'Check global control plugin configuration' --class=debug_control --class=debug_json --class=F5tool {
76 set pager=1
77 vt_check_plugin_json $vt_plugin_path control $vtoy_iso_part
78
79 echo -e "\npress ENTER to exit ..."
80 read vtInputKey
81 unset pager
82 }
83
84 menuentry 'Check theme plugin configuration' --class=debug_theme --class=debug_json --class=F5tool {
85 set pager=1
86 vt_check_plugin_json $vt_plugin_path theme $vtoy_iso_part
87
88 echo -e "\npress ENTER to exit ..."
89 read vtInputKey
90 unset pager
91 }
92
93 menuentry 'Check auto install plugin configuration' --class=debug_autoinstall --class=debug_json --class=F5tool {
94 set pager=1
95 vt_check_plugin_json $vt_plugin_path auto_install $vtoy_iso_part
96
97 echo -e "\npress ENTER to exit ..."
98 read vtInputKey
99 unset pager
100 }
101
102 menuentry 'Check persistence plugin configuration' --class=debug_persistence --class=debug_json --class=F5tool {
103 set pager=1
104 vt_check_plugin_json $vt_plugin_path persistence $vtoy_iso_part
105
106 echo -e "\n############### dump persistence ###############"
107 vt_dump_persistence
108
109 echo -e "\npress ENTER to exit ..."
110 read vtInputKey
111 unset pager
112 }
113
114 menuentry 'Check menu alias plugin configuration' --class=debug_menualias --class=debug_json --class=F5tool {
115 set pager=1
116 vt_check_plugin_json $vt_plugin_path menu_alias $vtoy_iso_part
117
118 echo -e "\npress ENTER to exit ..."
119 read vtInputKey
120 unset pager
121 }
122
123 menuentry 'Check menu tip plugin configuration' --class=debug_menutip --class=debug_json --class=F5tool {
124 set pager=1
125 vt_check_plugin_json $vt_plugin_path menu_tip $vtoy_iso_part
126
127 echo -e "\npress ENTER to exit ..."
128 read vtInputKey
129 unset pager
130 }
131
132 menuentry 'Check menu class plugin configuration' --class=debug_menuclass --class=debug_json --class=F5tool {
133 set pager=1
134 vt_check_plugin_json $vt_plugin_path menu_class $vtoy_iso_part
135
136 echo -e "\npress ENTER to exit ..."
137 read vtInputKey
138 unset pager
139 }
140
141 menuentry 'Check injection plugin configuration' --class=debug_injection --class=debug_json --class=F5tool {
142 set pager=1
143 vt_check_plugin_json $vt_plugin_path injection $vtoy_iso_part
144
145 echo -e "\npress ENTER to exit ..."
146 read vtInputKey
147 unset pager
148 }
149
150 menuentry 'Check auto memdisk plugin configuration' --class=debug_automemdisk --class=debug_json --class=F5tool {
151 set pager=1
152 vt_check_plugin_json $vt_plugin_path auto_memdisk $vtoy_iso_part
153
154 echo -e "\npress ENTER to exit ..."
155 read vtInputKey
156 unset pager
157 }
158
159 menuentry 'Check image list plugin configuration' --class=debug_imagelist --class=debug_json --class=F5tool {
160 set pager=1
161 vt_check_plugin_json $vt_plugin_path image_list $vtoy_iso_part
162
163 echo -e "\npress ENTER to exit ..."
164 read vtInputKey
165 unset pager
166 }
167
168 menuentry 'Check image blacklist plugin configuration' --class=debug_imageblacklist --class=debug_json --class=F5tool {
169 set pager=1
170 vt_check_plugin_json $vt_plugin_path image_blacklist $vtoy_iso_part
171
172 echo -e "\npress ENTER to exit ..."
173 read vtInputKey
174 unset pager
175 }
176
177 menuentry 'Check boot conf replace plugin configuration' --class=debug_bootconf_replace --class=debug_json --class=F5tool {
178 set pager=1
179 vt_check_plugin_json $vt_plugin_path conf_replace $vtoy_iso_part
180
181 echo -e "\npress ENTER to exit ..."
182 read vtInputKey
183 unset pager
184 }
185
186 menuentry 'Check dud plugin configuration' --class=debug_dud --class=debug_json --class=F5tool {
187 set pager=1
188 vt_check_plugin_json $vt_plugin_path dud $vtoy_iso_part
189
190 echo -e "\npress ENTER to exit ..."
191 read vtInputKey
192 unset pager
193 }
194
195 menuentry 'Check password plugin configuration' --class=debug_pwd --class=debug_json --class=F5tool {
196 set pager=1
197 vt_check_plugin_json $vt_plugin_path password $vtoy_iso_part
198
199 echo -e "\npress ENTER to exit ..."
200 read vtInputKey
201 unset pager
202 }
203
204 menuentry 'Check custom boot plugin configuration' --class=debug_custom_boot --class=debug_json --class=F5tool {
205 set pager=1
206 vt_check_plugin_json $vt_plugin_path custom_boot $vtoy_iso_part
207
208 echo -e "\npress ENTER to exit ..."
209 read vtInputKey
210 unset pager
211 }
212
213 menuentry 'Return to previous menu [Esc]' --class=vtoyret VTOY_RET {
214 echo 'Return ...'
215 }
216 }
217
218
219 menuentry 'Return to previous menu [Esc]' --class=vtoyret VTOY_RET {
220 echo 'Return ...'
221 }