Binaries in the ESP need to be .efi, not .efi.signed,
so truncate the filename if the source has it (like MOK
in Debian).
rel = p.relative_to(context.root)
if (context.root / output).is_dir():
+ # The ESP wants .efi files, not .efi.signed or .efi.signed.latest
+ if rel.suffix and rel.suffix != ".efi":
+ left_stem, _ = rel.name.split(".", maxsplit=1)
+ rel = rel.with_name(f"{left_stem}.efi")
output /= rel.name
log_step(f"Installing signed {name} EFI binary from /{rel} to /{output}")