diff --git a/__pycache__/backend.cpython-39.pyc b/__pycache__/backend.cpython-39.pyc index 367ec55..0fb80e0 100644 Binary files a/__pycache__/backend.cpython-39.pyc and b/__pycache__/backend.cpython-39.pyc differ diff --git a/backend.py b/backend.py index 988870d..a1d1a32 100644 --- a/backend.py +++ b/backend.py @@ -2033,7 +2033,7 @@ def chroot_and_repair_grub(mount_point: str, target_disk: str, # 如果所有 grub2-install 方法都失败,尝试手动复制 EFI 文件(针对 Secure Boot 问题) if not grub_install_success and "Secure Boot" in str(install_errors): log_info("grub2-install 不支持 Secure Boot,尝试手动安装 EFI 文件...") - success = _manual_install_efi_files(mount_point, efi_target, efi_grub_file, efi_boot_file, bootloader_id) + success = _manual_install_efi_files(mount_point, efi_target, efi_grub_file, efi_boot_file, efi_bootloader_id) if success: grub_install_success = True log_success("✓ 手动 EFI 文件安装成功")