ukify: do not insist on a stub being available when joining pcrsigs

It is not used in this case, so skip it, otherwise it will need to be
installed even if it is not used

Follow-up for 9876e88e23
This commit is contained in:
Luca Boccassi
2025-02-14 02:05:48 +00:00
parent 0dd03215f1
commit cdedc90caf

View File

@@ -2389,7 +2389,7 @@ def finalize_options(opts: argparse.Namespace) -> None:
if opts.efi_arch is None:
opts.efi_arch = guess_efi_arch()
if opts.stub is None:
if opts.stub is None and not opts.join_pcrsig:
if opts.linux is not None:
opts.stub = Path(f'/usr/lib/systemd/boot/efi/linux{opts.efi_arch}.efi.stub')
else: