]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Use staging directory as OUTPUTDIR in finalize script
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 20 Jun 2023 15:23:13 +0000 (17:23 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 20 Jun 2023 15:23:13 +0000 (17:23 +0200)
We should use the staging directory which is where all the outputs
will be located when we run the finalize script.

mkosi/__init__.py

index f304073a2a3453eb4408991c26f7fec09c73d5d1..eefa8791e640bb3869d49610dbbf0529efc2f687 100644 (file)
@@ -345,7 +345,7 @@ def run_finalize_script(state: MkosiState) -> None:
 
     with complete_step("Running finalize script…"):
         run([state.config.finalize_script],
-            env={**state.environment, "BUILDROOT": str(state.root), "OUTPUTDIR": str(state.config.output_dir)})
+            env={**state.environment, "BUILDROOT": str(state.root), "OUTPUTDIR": str(state.staging)})
 
 
 def certificate_common_name(certificate: Path) -> str: