kexec-installer: put ttyS0 last

otherwise consoles are broken in qemu
This commit is contained in:
Jörg Thalheim 2023-02-22 16:18:26 +01:00
parent 950f1e5ce8
commit cf172a5922

View file

@ -98,10 +98,10 @@ in {
# IPMI SOL console redirection stuff # IPMI SOL console redirection stuff
boot.kernelParams = 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.isAarch32 || pkgs.stdenv.hostPlatform.isAarch64) "console=ttyAMA0,115200") ++
(lib.optional (pkgs.stdenv.hostPlatform.isRiscV) "console=ttySIF0,115200") ++ (lib.optional (pkgs.stdenv.hostPlatform.isRiscV) "console=ttySIF0,115200") ++
[ "console=tty0" ]; [ "console=ttyS0,115200" ];
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.