From 52765ca1e3d7a421ed87c2ba3b9d8b86c6a6e738 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Mon, 27 Apr 2026 15:44:55 +0200 Subject: [PATCH] Update build.func --- misc/build.func | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/misc/build.func b/misc/build.func index fcfc8675..02dab6d8 100644 --- a/misc/build.func +++ b/misc/build.func @@ -6178,6 +6178,19 @@ create_lxc_container() { exit 216 } + # Workaround for util-linux >= 2.40.3 agetty bug that leaks CSI 6n cursor + # position responses ("R;80R") into the login prompt on the noVNC tty console. + # Affects Fedora 43+, Arch (rolling), Rocky/Alma 10+, openSUSE Tumbleweed. + # Switching to /dev/console avoids the broken pty path entirely. + # See: https://forum.proxmox.com/threads/178350/ (util-linux commit 7b90601f) + case "$var_os" in + fedora | rocky | almalinux | centos | openeuler | opensuse | archlinux) + if ! grep -q '^cmode:' "/etc/pve/lxc/$CTID.conf"; then + echo "cmode: console" >>"/etc/pve/lxc/$CTID.conf" + fi + ;; + esac + msg_ok "LXC Container ${BL}$CTID${CL} ${GN}was successfully created." }