This commit is contained in:
zj
2026-02-12 02:40:06 +08:00
parent 44b32045ce
commit 3862693dfe
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@@ -2033,7 +2033,7 @@ def chroot_and_repair_grub(mount_point: str, target_disk: str,
# 如果所有 grub2-install 方法都失败,尝试手动复制 EFI 文件(针对 Secure Boot 问题) # 如果所有 grub2-install 方法都失败,尝试手动复制 EFI 文件(针对 Secure Boot 问题)
if not grub_install_success and "Secure Boot" in str(install_errors): if not grub_install_success and "Secure Boot" in str(install_errors):
log_info("grub2-install 不支持 Secure Boot尝试手动安装 EFI 文件...") 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: if success:
grub_install_success = True grub_install_success = True
log_success("✓ 手动 EFI 文件安装成功") log_success("✓ 手动 EFI 文件安装成功")