Skip to content

Commit 7d15079

Browse files
committed
1.0.16 release
1 parent 0f8478f commit 7d15079

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+321
-31
lines changed

EDK2/edk2_mod/edk2-edk2-stable201911/MdeModulePkg/Application/Ventoy/Ventoy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ CONST CHAR16 *gEfiBootFileName[] =
7070
L"\\EFI\\BOOT\\GRUBX64.EFI",
7171
L"\\EFI\\BOOT\\BOOTx64.EFI",
7272
L"\\EFI\\BOOT\\bootx64.efi",
73-
L"\\efi\\boot\\bootx64.efi"
73+
L"\\efi\\boot\\bootx64.efi",
7474
};
7575

7676
VOID EFIAPI VtoyDebug(IN CONST CHAR8 *Format, ...)

GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2017,6 +2017,17 @@ static grub_err_t ventoy_cmd_dump_img_list(grub_extcmd_context_t ctxt, int argc,
20172017
return 0;
20182018
}
20192019

2020+
static grub_err_t ventoy_cmd_dump_injection(grub_extcmd_context_t ctxt, int argc, char **args)
2021+
{
2022+
(void)ctxt;
2023+
(void)argc;
2024+
(void)args;
2025+
2026+
ventoy_plugin_dump_injection();
2027+
2028+
return 0;
2029+
}
2030+
20202031
static grub_err_t ventoy_cmd_dump_auto_install(grub_extcmd_context_t ctxt, int argc, char **args)
20212032
{
20222033
(void)ctxt;
@@ -2361,6 +2372,7 @@ static cmd_para ventoy_cmds[] =
23612372
{ "vt_dynamic_menu", ventoy_cmd_dynamic_menu, 0, NULL, "", "", NULL },
23622373
{ "vt_check_mode", ventoy_cmd_check_mode, 0, NULL, "", "", NULL },
23632374
{ "vt_dump_img_list", ventoy_cmd_dump_img_list, 0, NULL, "", "", NULL },
2375+
{ "vt_dump_injection", ventoy_cmd_dump_injection, 0, NULL, "", "", NULL },
23642376
{ "vt_dump_auto_install", ventoy_cmd_dump_auto_install, 0, NULL, "", "", NULL },
23652377
{ "vt_dump_persistence", ventoy_cmd_dump_persistence, 0, NULL, "", "", NULL },
23662378
{ "vt_select_auto_install", ventoy_cmd_sel_auto_install, 0, NULL, "", "", NULL },

GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_def.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,7 @@ void ventoy_swap_img(img_info *img1, img_info *img2);
672672
char * ventoy_plugin_get_cur_install_template(const char *isopath);
673673
install_template * ventoy_plugin_find_install_template(const char *isopath);
674674
persistence_config * ventoy_plugin_find_persistent(const char *isopath);
675+
void ventoy_plugin_dump_injection(void);
675676
void ventoy_plugin_dump_auto_install(void);
676677
int ventoy_fill_windows_rtdata(void *buf, char *isopath);
677678
int ventoy_plugin_get_persistent_chunklist(const char *isopath, int index, ventoy_img_chunk_list *chunk_list);

GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_plugin.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,6 +1087,20 @@ grub_err_t ventoy_cmd_load_plugin(grub_extcmd_context_t ctxt, int argc, char **a
10871087
VENTOY_CMD_RETURN(GRUB_ERR_NONE);
10881088
}
10891089

1090+
void ventoy_plugin_dump_injection(void)
1091+
{
1092+
injection_config *node = NULL;
1093+
1094+
for (node = g_injection_head; node; node = node->next)
1095+
{
1096+
grub_printf("\nIMAGE:<%s>\n", node->isopath);
1097+
grub_printf("ARCHIVE:<%s>\n", node->archive);
1098+
}
1099+
1100+
return;
1101+
}
1102+
1103+
10901104
void ventoy_plugin_dump_auto_install(void)
10911105
{
10921106
int i;

GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_windows.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -726,8 +726,15 @@ int ventoy_fill_windows_rtdata(void *buf, char *isopath)
726726
script = (char *)ventoy_plugin_get_injection(pos);
727727
if (script)
728728
{
729-
debug("injection archive <%s>\n", script);
730-
grub_snprintf(data->injection_archive, sizeof(data->injection_archive) - 1, "%s", script);
729+
if (ventoy_check_file_exist("%s%s", ventoy_get_env("vtoy_iso_part"), script))
730+
{
731+
debug("injection archive <%s> OK\n", script);
732+
grub_snprintf(data->injection_archive, sizeof(data->injection_archive) - 1, "%s", script);
733+
}
734+
else
735+
{
736+
debug("injection archive <%s> NOT exist\n", script);
737+
}
731738
}
732739
else
733740
{

IMG/cpio/ventoy/init

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -186,21 +186,31 @@ fi
186186
# Step 3 : Extract injection archive #
187187
# #
188188
####################################################################
189-
if [ -e $VTOY_PATH/ventoy_injection ]; then
190-
echo "decompress injection ..." >>$VTLOG
191-
189+
ventoy_unpack_injection() {
192190
vtmagic=$(hexdump -n 2 -e '2/1 "%02X"' $VTOY_PATH/ventoy_injection)
193-
echo "vtmagic=$vtmagic ..." >>$VTLOG
191+
echo "ventoy_unpack_injection vtmagic=$vtmagic ..."
194192

195-
if [ "1F8B" = "vtmagic" ] || [ "1F9E" = "vtmagic" ]; then
196-
zcat $VTOY_PATH/ventoy_injection | tar -xf -C /
197-
elif [ "425A" = "vtmagic" ]; then
198-
bzcat $VTOY_PATH/ventoy_injection | tar -xf -C /
199-
elif [ "FD37" = "vtmagic" ]; then
200-
xzcat $VTOY_PATH/ventoy_injection | tar -xf -C /
193+
if [ "1F8B" = "$vtmagic" ] || [ "1F9E" = "$vtmagic" ]; then
194+
echo "tar.gz tar -xzvf"
195+
tar -xzvf $VTOY_PATH/ventoy_injection -C /
196+
elif [ "425A" = "$vtmagic" ]; then
197+
echo "tar.bz2 tar -xjvf"
198+
tar -xjvf $VTOY_PATH/ventoy_injection -C /
199+
elif [ "FD37" = "$vtmagic" ]; then
200+
echo "tar.xz tar -xJvf"
201+
tar -xJvf $VTOY_PATH/ventoy_injection -C /
202+
elif [ "5D00" = "$vtmagic" ]; then
203+
echo "tar.lzma tar -xavf"
204+
tar -xavf $VTOY_PATH/ventoy_injection -C /
201205
else
202-
unzip -o -q $VTOY_PATH/ventoy_injection -d /
206+
echo "unzip -o"
207+
unzip -o $VTOY_PATH/ventoy_injection -d /
203208
fi
209+
}
210+
211+
if [ -e $VTOY_PATH/ventoy_injection ]; then
212+
echo "### decompress injection ... ###" >>$VTLOG
213+
ventoy_unpack_injection > $VTOY_PATH/injection.log 2>&1
204214
fi
205215

206216

INSTALL/EFI/BOOT/grubx64_real.efi

0 Bytes
Binary file not shown.

INSTALL/grub/debug.cfg

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,16 @@ submenu 'Check plugin json configuration (ventoy.json)' --class=debug_json {
5454
echo -e "\npress ENTER to exit ..."
5555
read vtInputKey
5656
unset pager
57-
}
57+
}
58+
59+
menuentry 'Check injection plugin configuration' --class=debug_injection {
60+
set pager=1
61+
vt_check_plugin_json $vt_plugin_path injection $vtoy_iso_part
62+
63+
echo -e "\npress ENTER to exit ..."
64+
read vtInputKey
65+
unset pager
66+
}
5867

5968
menuentry 'Return to previous menu [Esc]' --class=vtoyret VTOY_RET {
6069
echo 'Return ...'

INSTALL/grub/grub.cfg

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ function ventoy_localboot {
6868
}
6969

7070
function ventoy_ext_menu {
71-
#if [ -e $vt_plugin_path/ventoy/ventoy_grub.cfg ]; then
71+
if [ -e $vt_plugin_path/ventoy/ventoy_grub.cfg ]; then
7272
set ventoy_new_context=1
7373
configfile $vt_plugin_path/ventoy/ventoy_grub.cfg
7474
unset ventoy_new_context
75-
#else
76-
# echo "ventoy_grub.cfg NOT exist."
77-
# echo -e "\npress ENTER to exit ..."
78-
# read vtInputKey
79-
#fi
75+
else
76+
echo "ventoy_grub.cfg NOT exist."
77+
echo -e "\npress ENTER to exit ..."
78+
read vtInputKey
79+
fi
8080
}
8181

8282
function get_os_type {

INSTALL/grub/i386-pc/core.img

-38 Bytes
Binary file not shown.

INSTALL/grub/i386-pc/file.mod

-16.7 KB
Binary file not shown.
241 KB
1.41 KB
1.02 KB
1.21 KB
916 Bytes
152 Bytes
154 Bytes
157 Bytes
178 Bytes
178 Bytes
157 Bytes
181 Bytes
181 Bytes
154 Bytes
318 Bytes
99 Bytes
190 Bytes
184 Bytes
976 Bytes
952 Bytes
963 Bytes
1.09 KB
1.07 KB
963 Bytes
1.08 KB
1.08 KB
952 Bytes

INSTALL/plugin/ventoy/theme/theme.txt

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
2+
desktop-image: "background.png"
3+
title-text: " "
4+
title-color: "#ffffff"
5+
message-color: "#f2f2f2"
6+
7+
terminal-box: "terminal_box_*.png"
8+
9+
+ boot_menu {
10+
left = 10%
11+
width = 80%
12+
top = 30%
13+
height = 50%
14+
15+
menu_pixmap_style = "menu_*.png"
16+
17+
item_color = "#ffffff"
18+
item_height = 30
19+
20+
item_spacing = 1
21+
item_padding = 1
22+
23+
selected_item_color= "#f2f2f2"
24+
selected_item_pixmap_style = "select_*.png"
25+
26+
item_icon_space = 0
27+
28+
scrollbar = true
29+
scrollbar_width = 10
30+
scrollbar_thumb = "slider_*.png"
31+
}
32+
33+
+ progress_bar {
34+
id = "__timeout__"
35+
text = "@TIMEOUT_NOTIFICATION_SHORT@"
36+
37+
left = 20%
38+
width = 60%
39+
top = 85%
40+
41+
text_color = "red"
42+
bar_style = "*"
43+
highlight_style = "*"
44+
}
45+
46+
+ hbox{
47+
left = 30%
48+
top = 95%
49+
width = 10%
50+
height = 25
51+
+ label {text = "@VTOY_HOTKEY_TIP@" color = "blue" align = "left"}
52+
}
53+
54+
55+
+ hbox{
56+
left = 30%
57+
top = 95%-25
58+
width = 10%
59+
height = 25
60+
+ label {text = "@VTOY_MEM_DISK@" color = "red" align = "left"}
61+
}
62+
63+
64+
+ hbox{
65+
left = 30%
66+
top = 95%-50
67+
width = 10%
68+
height = 25
69+
+ label {text = "@VTOY_ISO_RAW@" color = "red" align = "left"}
70+
}
71+
72+
73+
+ hbox{
74+
left = 90%
75+
top = 55
76+
width = 10%
77+
height = 25
78+
+ label {text = "@VTOY_ISO_UEFI_DRV@" color = "red" align = "left"}
79+
}
80+

INSTALL/plugin/ventoy/ventoy.json

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"control": [
3+
{ "VTOY_DEFAULT_MENU_MODE": "1" },
4+
{ "VTOY_FILT_DOT_UNDERSCORE_FILE": "1" }
5+
],
6+
7+
"theme": {
8+
"file": "/ventoy/theme/theme.txt",
9+
"display_mode": "GUI",
10+
"ventoy_left": "5%",
11+
"ventoy_top": "95%",
12+
"ventoy_color": "#0000ff"
13+
},
14+
15+
16+
"menu_class": [
17+
{
18+
"key": "ubuntu",
19+
"class": "ubuntu"
20+
},
21+
{
22+
"key": "deepin",
23+
"class": "deepin"
24+
},
25+
{
26+
"dir": "rhel",
27+
"class": "red-hat"
28+
}
29+
],
30+
31+
"menu_alias": [
32+
{
33+
"image": "/ISO/MX-19.1_x64.iso",
34+
"alias": "MX 19.1 ISO file For me"
35+
},
36+
{
37+
"image": "/cn_windows_10_enterprise_ltsc_2019_x64_dvd_9c09ff24.iso",
38+
"alias": "我的 Windows 10 系统"
39+
}
40+
],
41+
42+
"auto_install": [
43+
{
44+
"image": "/ISO/cn_windows_10.iso",
45+
"template": "/ventoy/script/windows_unattended.cfg"
46+
},
47+
{
48+
"image": "/ISO/cn_windows_server_2012_r2_vl_x64_dvd_2979220.iso",
49+
"template": [
50+
"/ventoy/script/windows_unattended1.xml",
51+
"/ventoy/script/windows_unattended2.xml",
52+
"/ventoy/script/windows_unattended3.xml",
53+
"/ventoy/script/windows_unattended4.xml",
54+
"/ventoy/script/windows_unattended5.xml",
55+
"/ventoy/script/windows_unattended6.xml"
56+
]
57+
}
58+
]
59+
60+
}

INSTALL/plugin/ventoy/ventoy_grub.cfg

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
menuentry "My Custom Menu" --class=custom {
2+
echo 'This is custom menu ... '
3+
sleep 1
4+
}
5+
6+
submenu 'My Custom SubMenu -->' --class=customsub {
7+
menuentry "My Custom Menu2" --class=custom2 {
8+
echo 'This is custom menu2 ... '
9+
sleep 1
10+
}
11+
12+
menuentry '<-- Return to previous menu [Esc]' --class=vtoyret VTOY_RET {
13+
echo 'Return ...'
14+
}
15+
}
16+
17+
menuentry '<-- Return to previous menu [Esc]' --class=vtoyret VTOY_RET {
18+
echo 'Return ...'
19+
}

INSTALL/ventoy/ventoy.cpio

1 KB
Binary file not shown.

INSTALL/ventoy/vtoyjump32.exe

1.5 KB
Binary file not shown.

INSTALL/ventoy/vtoyjump64.exe

1 KB
Binary file not shown.

INSTALL/ventoy_pack.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ cp -a ./tool $tmpdir/
8080
rm -f $tmpdir/ENROLL_THIS_KEY_IN_MOKMANAGER.cer
8181
cp -a Ventoy2Disk.sh $tmpdir/
8282
cp -a README $tmpdir/
83+
cp -a plugin $tmpdir/
8384
cp -a CreatePersistentImg.sh $tmpdir/
8485
dos2unix -q $tmpdir/Ventoy2Disk.sh
8586
dos2unix -q $tmpdir/CreatePersistentImg.sh

0 commit comments

Comments
 (0)