From: Daan De Meyer Date: Tue, 25 Apr 2023 09:14:09 +0000 (+0200) Subject: Remove support for passing arguments to the build script. X-Git-Tag: v15~196^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06aa299af19a7d80e00d08cda1fe9b996271f561;p=thirdparty%2Fmkosi.git Remove support for passing arguments to the build script. This doesn't end up working well in practice, so let's drop support for this. --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index bac62c030..0a52e8bea 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -1570,10 +1570,6 @@ def run_build_script(state: MkosiState) -> None: env |= dict(BUILDDIR="/work/build") cmd = ["setpriv", f"--reuid={state.uid}", f"--regid={state.gid}", "--clear-groups", "/work/build-script"] - # When we're building the image because it's required for another verb, any passed arguments are - # most likely intended for the target verb, and not for "build", so don't add them in that case. - if state.config.verb == Verb.build: - cmd += state.config.cmdline # build-script output goes to stdout so we can run language servers from within mkosi # build-scripts. See https://github.com/systemd/mkosi/pull/566 for more information.