From: Daan De Meyer Date: Mon, 8 May 2023 07:40:09 +0000 (+0200) Subject: Set tty size and term for /dev/console as well X-Git-Tag: v15~177^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1543%2Fhead;p=thirdparty%2Fmkosi.git 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. --- 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}",