fix: Multi-distro LXC container fixes for autologin and package installation

- Rocky/AlmaLinux 10 (EL10): Version detection for DNF 5 with correct packages (langpacks-en instead of glibc-langpack-en), makecache refresh, fallback to minimal install
- openSUSE: Install ncurses-utils and terminfo-base, set TERM in /etc/profile.d and /etc/environment to fix 'unknown terminal type'
- Gentoo: Fixed template pattern to use underscore (-openrc_) instead of dash, special version handling
- openEuler: Set privileged container (var_unprivileged=0) to workaround PVE setup hook limitation
- Devuan: Enhanced sysvinit autologin with multiple inittab patterns, fallback console entry, telinit reload
- CentOS/all: Updated URLs from raw.githubusercontent.com to git.community-scripts.org
- General: Better error handling and removed duplicate code blocks
This commit is contained in:
MickLesk
2026-01-12 21:34:58 +01:00
parent 021a4c612a
commit b8afdab106
3 changed files with 3406 additions and 3307 deletions

View File

@@ -5,6 +5,11 @@ source <(curl -fsSL https://git.community-scripts.org/community-scripts/ProxmoxV
# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE
# Source: https://www.openeuler.org/
# NOTE: openEuler requires privileged container due to PVE limitation
# PVE's post_create_hook expects /etc/redhat-release which openEuler doesn't have
# This causes "unable to create CT - error in setup task PVE::LXC::Setup::post_create_hook"
# Setting var_unprivileged=0 creates privileged container which bypasses this check
APP="openEuler"
var_tags="${var_tags:-os}"
var_cpu="${var_cpu:-1}"
@@ -12,7 +17,7 @@ var_ram="${var_ram:-512}"
var_disk="${var_disk:-4}"
var_os="${var_os:-openeuler}"
var_version="${var_version:-25.03}"
var_unprivileged="${var_unprivileged:-1}"
var_unprivileged="${var_unprivileged:-0}"
header_info "$APP"
variables