fix(install): fix Debian 13 LXC template root ownership bug (#11277)

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.
This commit is contained in:
CanbiZ (MickLesk)
2026-01-28 13:56:17 +01:00
committed by GitHub
parent f939170d47
commit 49c1eef653

View File

@@ -79,6 +79,12 @@ EOF
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
setting_up_container() { setting_up_container() {
msg_info "Setting up Container OS" msg_info "Setting up Container OS"
# Fix Debian 13 LXC template bug where / is owned by nobody
if [[ "$(stat -c '%U' /)" != "root" ]]; then
chown root:root /
fi
for ((i = RETRY_NUM; i > 0; i--)); do for ((i = RETRY_NUM; i > 0; i--)); do
if [ "$(hostname -I)" != "" ]; then if [ "$(hostname -I)" != "" ]; then
break break