From 2938bb29f5fcadc3e521f89b42cee6bfd107ac3f Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Wed, 28 Jan 2026 14:34:22 +0100 Subject: [PATCH] fix(install): ignore chown error in unprivileged containers --- misc/install.func | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/install.func b/misc/install.func index cfef85e31..dd71100c5 100644 --- a/misc/install.func +++ b/misc/install.func @@ -81,8 +81,9 @@ 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 / + chown root:root / 2>/dev/null || true fi for ((i = RETRY_NUM; i > 0; i--)); do