From cf172a59225d0d007eac873a2685516eff802413 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Wed, 22 Feb 2023 16:18:26 +0100 Subject: [PATCH] kexec-installer: put ttyS0 last otherwise consoles are broken in qemu --- nix/kexec-installer/module.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nix/kexec-installer/module.nix b/nix/kexec-installer/module.nix index e44bc6e..3390b29 100644 --- a/nix/kexec-installer/module.nix +++ b/nix/kexec-installer/module.nix @@ -98,10 +98,10 @@ in { # IPMI SOL console redirection stuff boot.kernelParams = - [ "console=ttyS0,115200" ] ++ + [ "console=tty0" ] ++ (lib.optional (pkgs.stdenv.hostPlatform.isAarch32 || pkgs.stdenv.hostPlatform.isAarch64) "console=ttyAMA0,115200") ++ (lib.optional (pkgs.stdenv.hostPlatform.isRiscV) "console=ttySIF0,115200") ++ - [ "console=tty0" ]; + [ "console=ttyS0,115200" ]; documentation.enable = false; # Not really needed. Saves a few bytes and the only service we are running is sshd, which we want to be reachable.