From: Maximilian Bosch Date: Mon, 29 Dec 2025 17:06:18 +0000 (+0100) Subject: mkosi/run: pass through LD_LIBRARY_PATH X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4100%2Fhead;p=thirdparty%2Fmkosi.git 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. --- 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]