From: Michael Ferrari Date: Mon, 11 Nov 2024 12:34:50 +0000 (+0100) Subject: Expose subimage name as envvar in scripts X-Git-Tag: v25~178^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3182%2Fhead;p=thirdparty%2Fmkosi.git Expose subimage name as envvar in scripts --- diff --git a/mkosi/config.py b/mkosi/config.py index a3504ae33..2cb79b21a 100644 --- a/mkosi/config.py +++ b/mkosi/config.py @@ -4420,6 +4420,8 @@ def load_environment(args: argparse.Namespace) -> dict[str, str]: "TERM": finalize_term(), } + if args.image is not None: + env["SUBIMAGE"] = args.image if args.image_id is not None: env["IMAGE_ID"] = args.image_id if args.image_version is not None: