]> glassweightruler.freedombox.rocks Git - Ventoy.git/blob - INSTALL/grub/debug.cfg
add 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 menuentry 'Check auto install plugin configuration' --class=debug_autoinstall {
23 set pager=1
24 vt_check_plugin_json $vt_plugin_path auto_install $vtoy_iso_part
25
26 echo -e "\npress ENTER to exit ..."
27 read vtInputKey
28 unset pager
29 }
30
31 menuentry 'Check persistence plugin configuration' --class=debug_persistence {
32 set pager=1
33 vt_check_plugin_json $vt_plugin_path persistence $vtoy_iso_part
34
35 echo -e "\n############### dump persistence ###############"
36 vt_dump_persistence
37
38 echo -e "\npress ENTER to exit ..."
39 read vtInputKey
40 unset pager
41 }
42
43 menuentry 'Check menu alias plugin configuration' --class=debug_menualias {
44 set pager=1
45 vt_check_plugin_json $vt_plugin_path menu_alias $vtoy_iso_part
46
47 echo -e "\npress ENTER to exit ..."
48 read vtInputKey
49 unset pager
50 }
51
52 menuentry 'Check menu class plugin configuration' --class=debug_menuclass {
53 set pager=1
54 vt_check_plugin_json $vt_plugin_path menu_class $vtoy_iso_part
55
56 echo -e "\npress ENTER to exit ..."
57 read vtInputKey
58 unset pager
59 }
60
61 menuentry 'Check injection plugin configuration' --class=debug_injection {
62 set pager=1
63 vt_check_plugin_json $vt_plugin_path injection $vtoy_iso_part
64
65 echo -e "\npress ENTER to exit ..."
66 read vtInputKey
67 unset pager
68 }
69
70 menuentry 'Check auto memdisk plugin configuration' --class=debug_automemdisk {
71 set pager=1
72 vt_check_plugin_json $vt_plugin_path auto_memdisk $vtoy_iso_part
73
74 echo -e "\npress ENTER to exit ..."
75 read vtInputKey
76 unset pager
77 }
78
79 menuentry 'Check image list plugin configuration' --class=debug_imagelist {
80 set pager=1
81 vt_check_plugin_json $vt_plugin_path image_list $vtoy_iso_part
82
83 echo -e "\npress ENTER to exit ..."
84 read vtInputKey
85 unset pager
86 }
87
88 menuentry 'Return to previous menu [Esc]' --class=vtoyret VTOY_RET {
89 echo 'Return ...'
90 }
91 }
92
93
94 submenu "Resolution Configuration" --class=debug_resolution {
95 menuentry 'Return to previous menu [Esc]' --class=vtoyret VTOY_RET {
96 echo 'Return ...'
97 }
98
99 vt_update_cur_video_mode VT_CUR_MODE
100 set vdid=0
101 while [ $vdid -lt $VTOY_VIDEO_MODE_NUM ]; do
102 vt_get_video_mode $vdid vtCurMode
103
104 unset vtActive
105 if [ "$vtCurMode" = "$VT_CUR_MODE" ]; then
106 set vtActive="[*]"
107 fi
108
109 menuentry "$vtCurMode $vtActive" --class=debug_videomode VTOY_RUN_RET {
110 terminal_output console
111 set gfxmode=$1
112 terminal_output gfxterm
113 }
114
115 vt_incr vdid 1
116 done
117 }
118
119
120
121 if [ "$grub_platform" != "pc" ]; then
122 submenu 'Ventoy UEFI Utilities' --class=debug_util {
123 menuentry 'Fixup Windows BlinitializeLibrary Failure' {
124 chainloader ${vtoy_path}/vtoyutil_x64.efi env_param=${env_param} ${vtdebug_flag} feature=fix_windows_mmap
125 boot
126 echo -e "\npress ENTER to exit ..."
127 read vtInputKey
128 }
129
130 menuentry 'Return to previous menu [Esc]' --class=vtoyret VTOY_RET {
131 echo 'Return ...'
132 }
133 }
134 fi
135
136 menuentry 'Return to previous menu [Esc]' --class=vtoyret VTOY_RET {
137 echo 'Return ...'
138 }