Skip to content

Commit

Permalink
Pass WITH_NETWORK to build and finalize scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
behrmann authored and DaanDeMeyer committed May 16, 2024
1 parent c06bab1 commit 2f0739e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions mkosi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,7 @@ def run_postinst_scripts(context: Context) -> None:
MKOSI_UID=str(INVOKING_USER.uid),
MKOSI_GID=str(INVOKING_USER.gid),
MKOSI_CONFIG="/work/config.json",
WITH_NETWORK=one_zero(context.config.with_network),
**GIT_ENV,
)

Expand Down Expand Up @@ -784,6 +785,7 @@ def run_finalize_scripts(context: Context) -> None:
MKOSI_UID=str(INVOKING_USER.uid),
MKOSI_GID=str(INVOKING_USER.gid),
MKOSI_CONFIG="/work/config.json",
WITH_NETWORK=one_zero(context.config.with_network),
**GIT_ENV,
)

Expand Down
2 changes: 1 addition & 1 deletion mkosi/resources/mkosi.md
Original file line number Diff line number Diff line change
Expand Up @@ -2295,7 +2295,7 @@ Consult this table for which script receives which environment variables:
| `ARTIFACTDIR` | | | x | x | x | x | |
| `WITH_DOCS` | | | X | X | | | |
| `WITH_TESTS` | | | X | X | | | |
| `WITH_NETWORK` | | | X | X | | | |
| `WITH_NETWORK` | | | X | X | x | x | |
| `SOURCE_DATE_EPOCH` | | | X | X | X | X | X |
| `MKOSI_UID` | X | X | X | X | X | X | X |
| `MKOSI_GID` | X | X | X | X | X | X | X |
Expand Down

0 comments on commit 2f0739e

Please sign in to comment.