]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Return output path from sign_efi_binary()
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 10 Mar 2024 15:43:30 +0000 (16:43 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 10 Mar 2024 19:28:21 +0000 (20:28 +0100)
mkosi/__init__.py

index 49d8cf4f209e36479bd25db3dfd355e1c267a240..6e2a551bc0b8cfca724f9c16652729b83febaf31 100644 (file)
@@ -844,7 +844,7 @@ def shim_second_stage_binary(context: Context) -> Path:
         return Path(f"efi/EFI/BOOT/grub{arch}.EFI")
 
 
-def sign_efi_binary(context: Context, input: Path, output: Path) -> None:
+def sign_efi_binary(context: Context, input: Path, output: Path) -> Path:
     assert context.config.secure_boot_key
     assert context.config.secure_boot_certificate
 
@@ -905,6 +905,8 @@ def sign_efi_binary(context: Context, input: Path, output: Path) -> None:
     else:
         die("One of sbsign or pesign is required to use SecureBoot=")
 
+    return output
+
 
 def install_systemd_boot(context: Context) -> None:
     if not want_efi(context.config):