From: Daan De Meyer Date: Tue, 20 Jun 2023 15:23:13 +0000 (+0200) Subject: Use staging directory as OUTPUTDIR in finalize script X-Git-Tag: v15~108^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33a3ef7f8a948ff3e9c5e7b86f003e6e6209e941;p=thirdparty%2Fmkosi.git Use staging directory as OUTPUTDIR in finalize script We should use the staging directory which is where all the outputs will be located when we run the finalize script. --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index f304073a2..eefa8791e 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -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: