From fed9c662d4e11fda64f078048d1ceb1de91940fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 30 Dec 2022 20:12:52 +0100 Subject: [PATCH] kexec-installer: make serial console more universal --- nix/kexec-installer/module.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nix/kexec-installer/module.nix b/nix/kexec-installer/module.nix index 608790d..6ee3523 100644 --- a/nix/kexec-installer/module.nix +++ b/nix/kexec-installer/module.nix @@ -85,11 +85,11 @@ in { ''; # IPMI SOL console redirection stuff - boot.kernelParams = [ - "console=ttyS0,115200n8" - "console=ttyAMA0,115200n8" - "console=tty0" - ]; + boot.kernelParams = + [ "console=ttyS0,115200" ] ++ + (lib.optional (pkgs.stdenv.hostPlatform.isAarch32 || pkgs.stdenv.hostPlatform.isAarch64) "console=ttyAMA0,115200") ++ + (lib.optional (pkgs.stdenv.hostPlatform.isRiscV) "console=ttySIF0,115200") ++ + [ "console=tty0" ]; 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.