]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Remove support for passing arguments to the build script.
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 25 Apr 2023 09:14:09 +0000 (11:14 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 25 Apr 2023 15:53:21 +0000 (17:53 +0200)
This doesn't end up working well in practice, so let's drop support
for this.

mkosi/__init__.py

index bac62c030c39d3e527ac50d769ed00c711b56506..0a52e8bea0ea3ccc8881f73709a3d74ef0608e8e 100644 (file)
@@ -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.