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