disable tty0 when using wayland

we don't vga output and use our serial console instead
This commit is contained in:
Jörg Thalheim
2023-12-08 16:19:09 +01:00
parent 2a0a50fb5e
commit 9704b5bd6f

View File

@@ -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: