From a31259b1597447a0b431cd5c81a6db2bc80f1ddf Mon Sep 17 00:00:00 2001 From: Stoiko Ivanov Date: Thu, 22 Jun 2023 22:14:45 +0200 Subject: [PATCH] unconfigured.sh: set terminal size for serial install Signed-off-by: Stoiko Ivanov --- unconfigured.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/unconfigured.sh b/unconfigured.sh index ba9b9e3..a361a20 100755 --- a/unconfigured.sh +++ b/unconfigured.sh @@ -16,6 +16,9 @@ parse_cmdline() { proxtui) proxtui=1 ;; + console=ttyS*) + serial=1 + ;; esac done; } @@ -211,6 +214,11 @@ setsid /sbin/agetty -a root --noclear tty3 & /usr/bin/proxmox-low-level-installer dump-env if [ $proxtui -ne 0 ]; then + if [ "$serial" -ne 0 ]; then + echo "Setting terminal size to 80x24 for serial install" + stty columns 80 rows 25 + fi + echo "Starting the TUI installer" /usr/bin/proxmox-tui-installer 2>/dev/tty2 else -- 2.39.2