diff --git a/backend.py b/backend.py index efa6ae4..6b00b92 100644 --- a/backend.py +++ b/backend.py @@ -1340,7 +1340,7 @@ def _manual_install_efi_files(mount_point: str, efi_target: str, efi_grub_file: modules = "part_gpt part_msdos fat ext2 xfs btrfs normal boot linux configfile search search_fs_uuid search_fs_file" # 构建 chroot 内的输出路径 - chroot_output_path = f"/boot/efi/EFI/{efi_bootloader_id}/{efi_grub_file}" + chroot_output_path = f"/boot/efi/EFI/{bootloader_id}/{efi_grub_file}" # 尝试使用 grub-mkimage 生成 EFI 文件 chroot_cmd_prefix = ["sudo", "chroot", mount_point]