From fa00a51110c9e2ad52ae97e59f09172415cc3dc8 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Wed, 28 Jan 2026 13:25:07 +0100 Subject: [PATCH] fix(tools): prevent systemd-tmpfiles failure in unprivileged LXC during .deb install (#11271) Set SYSTEMD_OFFLINE=1 for apt/dpkg in binary mode to prevent systemd-tmpfiles 'unsafe path transition' errors in unprivileged containers (Debian 13+/systemd 257+). --- misc/tools.func | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/misc/tools.func b/misc/tools.func index 657cbcfa2..42cc5b8a9 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -1845,8 +1845,9 @@ function fetch_and_deploy_gh_release() { } chmod 644 "$tmpdir/$filename" - $STD apt install -y "$tmpdir/$filename" || { - $STD dpkg -i "$tmpdir/$filename" || { + # SYSTEMD_OFFLINE=1 prevents systemd-tmpfiles failures in unprivileged LXC (Debian 13+/systemd 257+) + SYSTEMD_OFFLINE=1 $STD apt install -y "$tmpdir/$filename" || { + SYSTEMD_OFFLINE=1 $STD dpkg -i "$tmpdir/$filename" || { msg_error "Both apt and dpkg installation failed" rm -rf "$tmpdir" return 1