From 397baf0a2cfacc37aa2c6c6c76556384ba613aec Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Wed, 28 Jan 2026 13:50:54 +0100 Subject: [PATCH] fix(install): fix Debian 13 LXC template root ownership bug The Debian 13 LXC template has a bug where / is owned by nobody instead of root. This causes systemd-tmpfiles to fail with exit code 73 during package installation (e.g. authelia). Fix by checking and correcting / ownership at container setup. --- misc/install.func | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/misc/install.func b/misc/install.func index f757e78d1..dd71100c5 100644 --- a/misc/install.func +++ b/misc/install.func @@ -79,6 +79,13 @@ EOF # ------------------------------------------------------------------------------ setting_up_container() { msg_info "Setting up Container OS" + + # Fix Debian 13 LXC template bug where / is owned by nobody + # Only attempt in privileged containers (unprivileged cannot chown /) + if [[ "$(stat -c '%U' /)" != "root" ]]; then + chown root:root / 2>/dev/null || true + fi + for ((i = RETRY_NUM; i > 0; i--)); do if [ "$(hostname -I)" != "" ]; then break