introduce minifakeroot that also works on macos

This commit is contained in:
Jörg Thalheim
2024-06-27 18:20:16 +02:00
parent bae0a888c9
commit 2e2358d850
5 changed files with 55 additions and 11 deletions

View File

@@ -111,12 +111,11 @@ def zerotier_controller() -> Iterator[ZerotierController]:
home = tempdir / "zerotier-one"
home.mkdir()
cmd = [
"fakeroot",
"--",
"zerotier-one",
f"-p{controller_port}",
str(home),
]
with subprocess.Popen(
cmd,
preexec_fn=os.setsid,