Auto use grub2 mode for krd.iso

This commit is contained in:
longpanda 2022-02-17 12:15:57 +08:00
parent 53b95ae17b
commit 23f4f18e27
1 changed files with 9 additions and 0 deletions

View File

@ -746,7 +746,16 @@ function uefi_linux_menu_func {
ventoy_acpi_param ${vtoy_chain_mem_addr} 2048
ventoy_cli_console
unset vtGrub2Mode
if vt_check_mode 3; then
set vtGrub2Mode=1
elif vt_str_begin "$vt_volume_id" "KRD"; then
if [ -f (loop)/boot/grub/grub.cfg.sig ]; then
set vtGrub2Mode=1
fi
fi
if [ -n "$vtGrub2Mode" ]; then
ventoy_debug_pause
else
if [ "$VTOY_EFI_ARCH" != "mips" ]; then