Merge pull request #51 from nix-community/aarch64

kexec-installer: make serial console more universal
This commit is contained in:
Jörg Thalheim 2023-01-05 10:05:08 +00:00 committed by GitHub
commit 209b1d9ee6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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