From bb1178e82c517980ddc1e30d42d4bd1de2265eff Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 14 Mar 2021 17:34:08 +0000 Subject: [PATCH] blade: enable serial console for GRUB and boot --- ops/nixos/lib/blade.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ops/nixos/lib/blade.nix b/ops/nixos/lib/blade.nix index ee66b912ec..4c23ce687c 100644 --- a/ops/nixos/lib/blade.nix +++ b/ops/nixos/lib/blade.nix @@ -158,6 +158,17 @@ in { Storage=none ProcessSizeMax=0 ''; + + # Enable serial console. + loader.grub.extraConfig = '' + serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1 + terminal_input console serial + terminal_output console serial + ''; + boot.kernelParams = [ + "console=tty1" + "console=ttyS0,115200" # <-- /dev/console + ]; system.stateVersion = "21.05"; };