]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ukify: do not insist on a stub being available when joining pcrsigs 36381/head
authorLuca Boccassi <luca.boccassi@gmail.com>
Fri, 14 Feb 2025 02:05:48 +0000 (02:05 +0000)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 14 Feb 2025 10:57:03 +0000 (10:57 +0000)
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 9876e88e23ad1ecbffd7c69b2e0a4cbff283f681

src/ukify/ukify.py

index 6400618648316f031b4df09d40f7fe2ef28d064a..097a7ee0c66810aa38bf7fbdca0abecd7fa4b2c2 100755 (executable)
@@ -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: