]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Add missing cwd argument to spawn()
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 4 Apr 2024 08:47:25 +0000 (10:47 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 4 Apr 2024 08:47:25 +0000 (10:47 +0200)
mkosi/run.py

index a3b5364ef5aab926d4cd4527292b9dc40b7cc503..9b0d09a6dcc0cb78044b3c104385213218d312e1 100644 (file)
@@ -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: