Skip to content

Commit

Permalink
Expose subimage name as envvar in scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
NekkoDroid committed Nov 12, 2024
1 parent 0aab0c3 commit e733072
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mkosi/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e733072

Please sign in to comment.