From: Jörg Behrmann Date: Thu, 16 May 2024 12:55:58 +0000 (+0200) Subject: Pass WITH_NETWORK to build and finalize scripts X-Git-Tag: v23.1~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f0739e699cf26c43db5cf0764027b81b97b7eda;p=thirdparty%2Fmkosi.git Pass WITH_NETWORK to build and finalize scripts --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 945975ebb..ce4638c27 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -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, ) @@ -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, ) diff --git a/mkosi/resources/mkosi.md b/mkosi/resources/mkosi.md index 96a082314..b76f8622d 100644 --- a/mkosi/resources/mkosi.md +++ b/mkosi/resources/mkosi.md @@ -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 |