From: Daan De Meyer Date: Thu, 4 Apr 2024 08:47:25 +0000 (+0200) Subject: Add missing cwd argument to spawn() X-Git-Tag: v23~33^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbf35785eabc471cbdd8c5880ad863268f0daf28;p=thirdparty%2Fmkosi.git Add missing cwd argument to spawn() --- diff --git a/mkosi/run.py b/mkosi/run.py index a3b5364ef..9b0d09a6d 100644 --- a/mkosi/run.py +++ b/mkosi/run.py @@ -253,6 +253,7 @@ def spawn( group: Optional[int] = None, pass_fds: Collection[int] = (), env: Mapping[str, str] = {}, + cwd: Optional[Path] = None, log: bool = True, foreground: bool = False, preexec_fn: Optional[Callable[[], None]] = None, @@ -346,6 +347,7 @@ def spawn( # pass_fds contains the file descriptors to keep open after we've done our transformation in preexec(). pass_fds=[SD_LISTEN_FDS_START + i for i in range(len(pass_fds))], env=env, + cwd=cwd, preexec_fn=preexec, ) as proc: try: