NixOS AWS AMI: Configure Grub's serial console
See: * https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/enhanced-networking-os.html * https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/grub.html
This commit is contained in:
@@ -64,6 +64,11 @@ in
|
|||||||
boot.loader.grub.efiSupport = cfg.efi;
|
boot.loader.grub.efiSupport = cfg.efi;
|
||||||
boot.loader.grub.efiInstallAsRemovable = cfg.efi;
|
boot.loader.grub.efiInstallAsRemovable = cfg.efi;
|
||||||
boot.loader.timeout = 1;
|
boot.loader.timeout = 1;
|
||||||
|
boot.loader.grub.extraConfig = ''
|
||||||
|
serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
|
||||||
|
terminal_output console serial
|
||||||
|
terminal_input console serial
|
||||||
|
'';
|
||||||
|
|
||||||
boot.initrd.network.enable = true;
|
boot.initrd.network.enable = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user