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