From 8a456d02f3eaf98916ff0cc6c2eb32364e203fcc Mon Sep 17 00:00:00 2001 From: Andre Wagner Date: Fri, 8 May 2026 13:31:38 +0200 Subject: [PATCH] Make OUTPUT variable available in postoutput scripts so that you dont have to guess the name of the image you want to manipulate Signed-off-by: Andre Wagner --- mkosi/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 2adb4ca1df..04afe267a5 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -1130,6 +1130,7 @@ def run_postoutput_scripts(context: Context) -> None: ), SRCDIR="/work/src", OUTPUTDIR="/work/out", + OUTPUT=context.config.output, MKOSI_UID=str(os.getuid()), MKOSI_GID=str(os.getgid()), MKOSI_CONFIG="/work/config.json",