]> glassweightruler.freedombox.rocks Git - Ventoy.git/blob - INSTALL/grub/debug.cfg
support original order in image_list plugin
[Ventoy.git] / INSTALL / grub / debug.cfg
1
2
3 submenu 'Check plugin json configuration (ventoy.json)' --class=debug_json {
4 menuentry 'Check global control plugin configuration' --class=debug_control {
5 set pager=1
6 vt_check_plugin_json $vt_plugin_path control $vtoy_iso_part
7
8 echo -e "\npress ENTER to exit ..."
9 read vtInputKey
10 unset pager
11 }
12
13 menuentry 'Check theme plugin configuration' --class=debug_theme {
14 set pager=1
15 vt_check_plugin_json $vt_plugin_path theme $vtoy_iso_part
16
17 echo -e "\npress ENTER to exit ..."
18 read vtInputKey
19 unset pager
20 }
21
22 if [ "$grub_platform" = "pc" ]; then
23 menuentry 'Check legacy theme plugin configuration' --class=debug_theme_legacy {
24 set pager=1
25 vt_check_plugin_json $vt_plugin_path theme_legacy $vtoy_iso_part
26
27 echo -e "\npress ENTER to exit ..."
28 read vtInputKey
29 unset pager
30 }
31 else
32 menuentry 'Check uefi theme plugin configuration' --class=debug_theme_uefi {
33 set pager=1
34 vt_check_plugin_json $vt_plugin_path theme_uefi $vtoy_iso_part
35
36 echo -e "\npress ENTER to exit ..."
37 read vtInputKey
38 unset pager
39 }
40 fi
41
42
43 menuentry 'Check auto install plugin configuration' --class=debug_autoinstall {
44 set pager=1
45 vt_check_plugin_json $vt_plugin_path auto_install $vtoy_iso_part
46
47 echo -e "\npress ENTER to exit ..."
48 read vtInputKey
49 unset pager
50 }
51
52 menuentry 'Check persistence plugin configuration' --class=debug_persistence {
53 set pager=1
54 vt_check_plugin_json $vt_plugin_path persistence $vtoy_iso_part
55
56 echo -e "\n############### dump persistence ###############"
57 vt_dump_persistence
58
59 echo -e "\npress ENTER to exit ..."
60 read vtInputKey
61 unset pager
62 }
63
64 menuentry 'Check menu alias plugin configuration' --class=debug_menualias {
65 set pager=1
66 vt_check_plugin_json $vt_plugin_path menu_alias $vtoy_iso_part
67
68 echo -e "\npress ENTER to exit ..."
69 read vtInputKey
70 unset pager
71 }
72
73 menuentry 'Check menu class plugin configuration' --class=debug_menuclass {
74 set pager=1
75 vt_check_plugin_json $vt_plugin_path menu_class $vtoy_iso_part
76
77 echo -e "\npress ENTER to exit ..."
78 read vtInputKey
79 unset pager
80 }
81
82 menuentry 'Check injection plugin configuration' --class=debug_injection {
83 set pager=1
84 vt_check_plugin_json $vt_plugin_path injection $vtoy_iso_part
85
86 echo -e "\npress ENTER to exit ..."
87 read vtInputKey
88 unset pager
89 }
90
91 menuentry 'Check auto memdisk plugin configuration' --class=debug_automemdisk {
92 set pager=1
93 vt_check_plugin_json $vt_plugin_path auto_memdisk $vtoy_iso_part
94
95 echo -e "\npress ENTER to exit ..."
96 read vtInputKey
97 unset pager
98 }
99
100 menuentry 'Check image list plugin configuration' --class=debug_imagelist {
101 set pager=1
102 vt_check_plugin_json $vt_plugin_path image_list $vtoy_iso_part
103
104 echo -e "\npress ENTER to exit ..."
105 read vtInputKey
106 unset pager
107 }
108
109 menuentry 'Return to previous menu [Esc]' --class=vtoyret VTOY_RET {
110 echo 'Return ...'
111 }
112 }
113
114
115 submenu "Resolution Configuration" --class=debug_resolution {
116 menuentry 'Return to previous menu [Esc]' --class=vtoyret VTOY_RET {
117 echo 'Return ...'
118 }
119
120 vt_update_cur_video_mode VT_CUR_MODE
121 set vdid=0
122 while [ $vdid -lt $VTOY_VIDEO_MODE_NUM ]; do
123 vt_get_video_mode $vdid vtCurMode
124
125 unset vtActive
126 if [ "$vtCurMode" = "$VT_CUR_MODE" ]; then
127 set vtActive="[*]"
128 fi
129
130 menuentry "$vtCurMode $vtActive" --class=debug_videomode VTOY_RUN_RET {
131 terminal_output console
132 set gfxmode=$1
133 terminal_output gfxterm
134 }
135
136 vt_incr vdid 1
137 done
138 }
139
140
141
142 if [ "$grub_platform" != "pc" ]; then
143 submenu 'Ventoy UEFI Utilities' --class=debug_util {
144 menuentry 'Fixup Windows BlinitializeLibrary Failure' {
145 chainloader ${vtoy_path}/vtoyutil_x64.efi env_param=${env_param} ${vtdebug_flag} feature=fix_windows_mmap
146 boot
147 echo -e "\npress ENTER to exit ..."
148 read vtInputKey
149 }
150
151 menuentry 'Return to previous menu [Esc]' --class=vtoyret VTOY_RET {
152 echo 'Return ...'
153 }
154 }
155 fi
156
157 menuentry 'Return to previous menu [Esc]' --class=vtoyret VTOY_RET {
158 echo 'Return ...'
159 }