Only use acpi when secureboot if enabled in UEFI mode.

This commit is contained in:
longpanda
2021-02-04 13:36:26 +08:00
parent b1d5237041
commit b0208c8ce3
5 changed files with 35 additions and 1 deletions

View File

@@ -1224,7 +1224,9 @@ function vtoyboot_common_func {
linux16 $vtoy_path/ipxe.krn ${vtdebug_flag} bios80 sector512 mem:${vtoy_chain_mem_addr}:size:${vtoy_chain_mem_size}
boot
else
vt_acpi_param ${vtoy_chain_mem_addr} 512
if vt_check_secureboot_var; then
vt_acpi_param ${vtoy_chain_mem_addr} 512
fi
ventoy_cli_console
chainloader ${vtoy_path}/ventoy_${VTOY_EFI_ARCH}.efi sector512 env_param=${ventoy_env_param} ${vtdebug_flag} mem:${vtoy_chain_mem_addr}:size:${vtoy_chain_mem_size}
boot