From c7de34c7a292e6c75cbb756ca92c5c4696012772 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Tue, 31 Oct 2023 08:50:33 +0100 Subject: customize-autologin.sh: bump minimum setterm version There was a bug that would cause setterm to randomly enable O_ASYNC on the console due to the use of uninitialized memory. As a consequence, any keystroke would raise SIGIO and kill the shell. Since setterm is a convenience feature and killing the shell is bad, disable it for earlier versions. Reported-by: Emanuele Rocca Thanks: Chris Hofstaedtler --- share/customize-autologin.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/customize-autologin.sh b/share/customize-autologin.sh index da386b5..a6fc1d2 100755 --- a/share/customize-autologin.sh +++ b/share/customize-autologin.sh @@ -11,7 +11,7 @@ set -eu TARGET=$1 -if dpkg --compare-versions "$(dpkg-query --root "$TARGET" -f '${Version}' -W util-linux)" ge 2.33; then +if dpkg --compare-versions "$(dpkg-query --root "$TARGET" -f '${Version}' -W util-linux)" ge 2.39.2-5~; then cat >"$TARGET/etc/profile.d/resize_serial_term.sh" <<'EOF' if test -n "${TERM-}" && test -n "${PS1-}"; then case "$(tty)" in -- cgit v1.2.3