From 1912afc4b5a3409d52e6e5d06dc611620f75cb2b Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Mon, 8 May 2023 09:40:09 +0200 Subject: [PATCH] Set tty size and term for /dev/console as well When emergency.service is started, it's started connected to /dev/console, so make sure we configure default term and tty size for that one as well. --- mkosi/config.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mkosi/config.py b/mkosi/config.py index 54362abd1..55220ec87 100644 --- a/mkosi/config.py +++ b/mkosi/config.py @@ -2113,6 +2113,9 @@ def load_kernel_command_line_extra(args: argparse.Namespace) -> list[str]: columns, lines = shutil.get_terminal_size() cmdline = [ + f"systemd.tty.term.console={os.getenv('TERM', 'vt220')}", + f"systemd.tty.columns.console={columns}", + f"systemd.tty.rows.console={lines}", f"systemd.tty.term.ttyS0={os.getenv('TERM', 'vt220')}", f"systemd.tty.columns.ttyS0={columns}", f"systemd.tty.rows.ttyS0={lines}", -- 2.47.2