elif [ -e (loop)/bin/freebsd-version ]; then
set vtoy_os=Unix
set vt_unix_type=FreeBSD
+ elif [ -e (loop)/boot/kernel/geom_ventoy.ko ]; then
+ set vtoy_os=Unix
+ set vt_unix_type=FreeBSD
elif vt_str_begin "$vt_system_id" "DragonFly"; then
set vtoy_os=Unix
set vt_unix_type=DragonFly
#Check for PE without external tools
#set compatible if ISO file is less than 80MB
if [ $vt_chosen_size -gt 33554432 -a $vt_chosen_size -le 83886080 ]; then
- set ventoy_compatible=YES
- elif [ -e $1/WEPE/WEPE.INI ]; then
- set ventoy_compatible=YES
+ set ventoy_compatible=YES
fi
return
vt_linux_specify_initrd_file /initrd.gz
elif [ -e (loop)/slax/boot/initrfs.img ]; then
vt_linux_specify_initrd_file /slax/boot/initrfs.img
+ elif [ -e (loop)/minios/boot/initrfs.img ]; then
+ vt_linux_specify_initrd_file /minios/boot/initrfs.img
elif [ -e (loop)/pmagic/initrd.img ]; then
vt_linux_specify_initrd_file /pmagic/initrd.img
elif [ -e (loop)/boot/initrd.xz ]; then
set vtFreeBsdDistro=FreeBSD
set vt_freebsd_ver=xx
+ if [ -e (loop)/boot/kernel/geom_ventoy.ko ]; then
+ vt_unix_ko_fillmap /boot/kernel/geom_ventoy.ko
+ return
+ fi
+
if vt_strstr "$vt_volume_id" "GHOSTBSD"; then
ventoy_get_ghostbsd_ver "$1" "${chosen_path}"
elif vt_strstr "$vt_volume_id" "FREENAS"; then
elif [ -e (loop)/syslinux/alt0/full.cz ]; then
vt_add_replace_file 0 "EFI\\BOOT\\full.cz"
set FirstTryBootFile='@EFI@BOOT@grubx64.efi'
-
+
+ elif vt_str_begin "$vt_volume_id" "SolusLive"; then
+ vt_add_replace_file 0 "initrd"
fi
#############################################################
#############################################################
-set VENTOY_VERSION="1.0.58"
+set VENTOY_VERSION="1.0.62"
#ACPI not compatible with Window7/8, so disable by default
set VTOY_PARAM_NO_ACPI=1
if [ -n "$VTOY_PLUGIN_SYNTAX_ERROR" ]; then
clear
- echo -e "\n Syntax error detected in ventoy.json, please check! \n"
- echo -e " ventoy.json 文件中有语法错误,所有配置都不会生效,请检查!\n"
+ if [ -n "$VTOY_PLUGIN_ENCODE_ERROR" ]; then
+ echo -e "\n Encoding type for ventoy.json is not supported, please convert to UTF-8.\n"
+ echo -e " ventoy.json 文件编码格式不支持,请转换为 UTF-8 编码格式!\n"
+ else
+ echo -e "\n Syntax error detected in ventoy.json, please check! \n"
+ echo -e " ventoy.json 文件中有语法错误,所有配置都不会生效,请检查!\n"
+ fi
+
echo -e "\n press ENTER to continue (请按 回车 键继续) ..."
- read vtInputKey
+ read vtInputKey
fi
+
for vtTFile in ventoy.json ventoy_grub.cfg; do
if [ -f $vtoy_efi_part/ventoy/$vtTFile ]; then
clear