Update build.func

This commit is contained in:
CanbiZ (MickLesk)
2026-04-27 15:44:55 +02:00
parent ee403a74d3
commit 52765ca1e3

View File

@@ -6178,6 +6178,19 @@ create_lxc_container() {
exit 216 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." msg_ok "LXC Container ${BL}$CTID${CL} ${GN}was successfully created."
} }