kexec-installer: make serial console more universal

This commit is contained in:
Jörg Thalheim 2022-12-30 20:12:52 +01:00
parent 1552f84331
commit fed9c662d4

View file

@ -85,11 +85,11 @@ in {
''; '';
# IPMI SOL console redirection stuff # IPMI SOL console redirection stuff
boot.kernelParams = [ boot.kernelParams =
"console=ttyS0,115200n8" [ "console=ttyS0,115200" ] ++
"console=ttyAMA0,115200n8" (lib.optional (pkgs.stdenv.hostPlatform.isAarch32 || pkgs.stdenv.hostPlatform.isAarch64) "console=ttyAMA0,115200") ++
"console=tty0" (lib.optional (pkgs.stdenv.hostPlatform.isRiscV) "console=ttySIF0,115200") ++
]; [ "console=tty0" ];
documentation.enable = false; 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. # Not really needed. Saves a few bytes and the only service we are running is sshd, which we want to be reachable.