fix(install): ignore chown error in unprivileged containers

This commit is contained in:
CanbiZ (MickLesk)
2026-01-28 14:34:22 +01:00
parent ba9618eabd
commit 2938bb29f5
+2 -1
View File
@@ -81,8 +81,9 @@ 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 # 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 if [[ "$(stat -c '%U' /)" != "root" ]]; then
chown root:root / chown root:root / 2>/dev/null || true
fi fi
for ((i = RETRY_NUM; i > 0; i--)); do for ((i = RETRY_NUM; i > 0; i--)); do