]> git.proxmox.com Git - pve-installer.git/commit
unconfigured: move terminal size setting before starting debug shell
authorChristoph Heiss <c.heiss@proxmox.com>
Tue, 12 Mar 2024 11:59:12 +0000 (12:59 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 22 Mar 2024 10:37:22 +0000 (11:37 +0100)
commit3facbe51c670e33142beb4cd5d8f498af0da24cb
tree905b904e3d2b82161ab07f6677f89eacd3f08009
parent6e8257c7ed3a952520e0d164e652a08f93937a1e
unconfigured: move terminal size setting before starting debug shell

Otherwise, when using the serial debug shell, the console size will be
0x0. This in turn breaks the TUI installer, as it cannot detect the
size properly.

It also adjust the size to the proper 80x24 instead of 80x25, as
advertised in the log message.

As while for VGA 80x25 is the standard size [0], for serial consoles
aka.  VT10x emulated terminals it is actually 80x24 [1], which
basically everything uses as reference. GRUB also uses 80x24 when used
over a serial interface. It spits out 24 lines at least.

[0] https://www.kernel.org/doc/Documentation/svga.txt (`NORMAL_VGA`)
[1] https://vt100.net/dec/ek-vt100-tm-002.pdf (page 21, "Format")

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
 [ TL: include further references about size from discussion ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
unconfigured.sh