mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-04-01 18:21:33 -04:00
Add support for Emergency Boot Kit
This commit is contained in:
parent
bfc5eaebb9
commit
892a819da4
@ -138,6 +138,14 @@ function vt_check_compatible_pe {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function vt_check_compatible_linux {
|
||||||
|
if vt_str_begin "$vt_volume_id" "embootkit"; then
|
||||||
|
set ventoy_compatible=YES
|
||||||
|
fi
|
||||||
|
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
function locate_initrd {
|
function locate_initrd {
|
||||||
vt_linux_locate_initrd
|
vt_linux_locate_initrd
|
||||||
|
|
||||||
@ -829,6 +837,7 @@ function uefi_iso_menu_func {
|
|||||||
elif [ "$vtoy_os" = "Unix" ]; then
|
elif [ "$vtoy_os" = "Unix" ]; then
|
||||||
uefi_unix_menu_func "$1" "${chosen_path}"
|
uefi_unix_menu_func "$1" "${chosen_path}"
|
||||||
else
|
else
|
||||||
|
vt_check_compatible_linux (loop)
|
||||||
uefi_linux_menu_func "$1" "${chosen_path}"
|
uefi_linux_menu_func "$1" "${chosen_path}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -1133,6 +1142,7 @@ function legacy_iso_menu_func {
|
|||||||
elif [ "$vtoy_os" = "Unix" ]; then
|
elif [ "$vtoy_os" = "Unix" ]; then
|
||||||
legacy_unix_menu_func "$1" "${chosen_path}"
|
legacy_unix_menu_func "$1" "${chosen_path}"
|
||||||
else
|
else
|
||||||
|
vt_check_compatible_linux (loop)
|
||||||
legacy_linux_menu_func "$1" "${chosen_path}"
|
legacy_linux_menu_func "$1" "${chosen_path}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user