mirror of
https://github.com/ventoy/Ventoy.git
synced 2026-11-20 12:43:34 +01:00
@@ -50,6 +50,13 @@ function ventoy_gui_console {
|
||||
fi
|
||||
}
|
||||
|
||||
function ventoy_cfg_theme_lock {
|
||||
vt_timeout_lock $1
|
||||
vt_theme_lock $1
|
||||
terminal_lock $1
|
||||
lockfont $1
|
||||
}
|
||||
|
||||
function ventoy_acpi_param {
|
||||
if [ "$VTOY_PARAM_NO_ACPI" != "1" ]; then
|
||||
vt_acpi_param "$1" "$2"
|
||||
@@ -1997,6 +2004,47 @@ function ventoy_img_freedombox {
|
||||
vt_unset_boot_opt
|
||||
}
|
||||
|
||||
function steamenv_init {
|
||||
echo "dummy steamenv_boot"
|
||||
}
|
||||
|
||||
function steamenv_boot {
|
||||
if [ -n "${vtdebug_flag}" ]; then
|
||||
$1 $2 loglevel=7
|
||||
else
|
||||
$@
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
function ventoy_img_steamos {
|
||||
vt_load_cpio $vtoy_path "${vt_chosen_path}" ${vtoy_iso_part} "busybox=$ventoy_busybox_ver"
|
||||
vt_trailer_cpio ${vtoy_iso_part} "${vt_chosen_path}" noinit
|
||||
|
||||
vt_get_lib_module_ver (vtimghd,3) /lib/modules/ vt_module_ver
|
||||
if [ -n "$vt_module_ver" ]; then
|
||||
vt_img_extra_initrd_append (vtimghd,3)/lib/modules/$vt_module_ver/kernel/drivers/md/dm-mod
|
||||
fi
|
||||
|
||||
ventoy_debug_pause
|
||||
|
||||
#boot image file
|
||||
vt_set_boot_opt rdinit=/vtoy/vtoy ventoyos=steamos steamos.efi=/dev/steamos-media-efi
|
||||
vt_img_hook_root
|
||||
|
||||
set theme=$vtback_theme
|
||||
ventoy_gui_console
|
||||
ventoy_cfg_theme_lock 1
|
||||
|
||||
configfile (vtimghd,2)/EFI/steamos/grub.cfg
|
||||
|
||||
ventoy_cfg_theme_lock 0
|
||||
|
||||
vt_img_unhook_root
|
||||
vt_unset_boot_opt
|
||||
}
|
||||
|
||||
|
||||
function ventoy_img_paldo {
|
||||
vt_load_cpio $vtoy_path "${vt_chosen_path}" ${vtoy_iso_part} "busybox=$ventoy_busybox_ver"
|
||||
vt_trailer_cpio ${vtoy_iso_part} "${vt_chosen_path}" noinit
|
||||
@@ -2376,6 +2424,8 @@ function img_common_menuentry {
|
||||
ventoy_img_recalbox
|
||||
elif [ "$vtImgHd1Label" = "ESYSRESCUE" ]; then
|
||||
ventoy_img_esysrescue
|
||||
elif [ -e (vtimghd,1)/SteamOS ]; then
|
||||
ventoy_img_steamos
|
||||
elif [ -e (vtimghd,1)/easy.sfs ]; then
|
||||
ventoy_img_easyos
|
||||
elif [ -d (vtimghd,2)/easyos ]; then
|
||||
|
||||
Reference in New Issue
Block a user