From 76ec260233796731efc8affe52462e96dc9c5cdd Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Mon, 29 Dec 2025 18:06:18 +0100 Subject: [PATCH] mkosi/run: pass through LD_LIBRARY_PATH The sandbox expects that the host has a `libseccomp.so` in its global search-path (usually `/usr/lib`). However, that path doesn't exist on NixOS. Another standard way of passing lookup paths to `dlopen()` is using LD_LIBRARY_PATH which is now passed through to the sandbox. --- mkosi/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkosi/run.py b/mkosi/run.py index c2d6182a9..c0acd565c 100644 --- a/mkosi/run.py +++ b/mkosi/run.py @@ -262,7 +262,7 @@ def spawn( if "TMPDIR" in os.environ: env["TMPDIR"] = os.environ["TMPDIR"] - for e in ("SYSTEMD_LOG_LEVEL", "SYSTEMD_LOG_LOCATION"): + for e in ("SYSTEMD_LOG_LEVEL", "SYSTEMD_LOG_LOCATION", "LD_LIBRARY_PATH"): if e in os.environ: env[e] = os.environ[e] -- 2.47.3