{facts,vars}/generator: also setup /proc

some applications fail without proc
This commit is contained in:
Jörg Thalheim
2024-10-29 13:35:13 +01:00
parent 3f62d5eefd
commit 5feb248e8f
2 changed files with 2 additions and 0 deletions

View File

@@ -49,6 +49,7 @@ def bubblewrap_cmd(generator: str, facts_dir: Path, secrets_dir: Path) -> list[s
"--ro-bind", "/nix/store", "/nix/store", "--ro-bind", "/nix/store", "/nix/store",
"--tmpfs", "/usr/lib/systemd", "--tmpfs", "/usr/lib/systemd",
"--dev", "/dev", "--dev", "/dev",
"--proc", "/proc",
"--bind", str(facts_dir), str(facts_dir), "--bind", str(facts_dir), str(facts_dir),
"--bind", str(secrets_dir), str(secrets_dir), "--bind", str(secrets_dir), str(secrets_dir),
"--unshare-all", "--unshare-all",

View File

@@ -41,6 +41,7 @@ def bubblewrap_cmd(generator: str, tmpdir: Path) -> list[str]:
"--ro-bind", "/nix/store", "/nix/store", "--ro-bind", "/nix/store", "/nix/store",
"--tmpfs", "/usr/lib/systemd", "--tmpfs", "/usr/lib/systemd",
"--dev", "/dev", "--dev", "/dev",
"--proc", "/proc",
"--bind", str(tmpdir), str(tmpdir), "--bind", str(tmpdir), str(tmpdir),
"--unshare-all", "--unshare-all",
"--unshare-user", "--unshare-user",