This commit is contained in:
zj
2026-02-11 23:23:48 +08:00
parent 9f86574ece
commit 85d0f00a48
4 changed files with 23 additions and 4 deletions

View File

@@ -510,6 +510,9 @@ Secure Boot: {'已启用' if self.system_info.get('sb_enabled') else '已禁用/
self.log_message(f"EFI Fallback: {'' if use_fallback else ''}", "info")
self.log_message(f"启动项名称: {bootloader_id}", "info")
# 检查是否有独立的 /boot 分区
has_separate_boot = self.selected_boot_partition_info is not None
repair_ok, repair_err = backend.chroot_and_repair_grub(
self.mount_point,
target_disk_path or "", # UEFI 模式下可能为空
@@ -517,7 +520,8 @@ Secure Boot: {'已启用' if self.system_info.get('sb_enabled') else '已禁用/
distro_type,
install_hybrid=install_hybrid,
use_fallback=use_fallback,
efi_bootloader_id=bootloader_id
efi_bootloader_id=bootloader_id,
has_separate_boot=has_separate_boot
)
if not repair_ok: