From 9704b5bd6f635dc4d2fc7895b9f73be6db3a480e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 8 Dec 2023 16:19:09 +0100 Subject: [PATCH] disable tty0 when using wayland we don't vga output and use our serial console instead --- pkgs/clan-cli/clan_cli/vms/run.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/clan-cli/clan_cli/vms/run.py b/pkgs/clan-cli/clan_cli/vms/run.py index b28bf1ebe..9ac0e8c84 100644 --- a/pkgs/clan-cli/clan_cli/vms/run.py +++ b/pkgs/clan-cli/clan_cli/vms/run.py @@ -59,14 +59,16 @@ def qemu_command( xchg_dir: Path, secrets_dir: Path, disk_img: Path, + wayland: bool, ) -> list[str]: kernel_cmdline = [ (Path(nixos_config["toplevel"]) / "kernel-params").read_text(), f'init={nixos_config["toplevel"]}/init', f'regInfo={nixos_config["regInfo"]}/registration', "console=ttyS0,115200n8", - "console=tty0", ] + if not wayland: + kernel_cmdline.append("console=tty0") # fmt: off command = [ "qemu-kvm", @@ -244,6 +246,7 @@ def run_vm( xchg_dir=xchg_dir, secrets_dir=secrets_dir, disk_img=disk_img, + wayland=vm.wayland, ) if vm.wayland: