3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules
Tom Fitzhenry 9d92c9d0a7 iso-image: add 'serial console' boot entry
Prior to this commit, installation over serial console would requiring
manually having to modify the kernel modeline, as described in
https://github.com/NixOS/nixpkgs/issues/58198 .

This is unnecessarily fiddly, so this commit adds a syslinux boot
entry that has serial enabled.

GRUB already has a serial console entry:
2c07a0800a/nixos/modules/installer/cd-dvd/iso-image.nix (L311-L317)

Why 115200 bps? This is already used in other places, e.g. https://github.com/NixOS/nixpkgs/pull/58196

I tested this change by building the image, booting the image, and
observing the boot process over serial:

    $ cd nixos/
    $ nix-build -A config.system.build.isoImage -I nixos-config=modules/installer/cd-dvd/installation-cd-minimal.nix default.nix
    $ sudo cp /nix/store/arcl702c3z8xlndlvnfplq9yhixjvs9k-nixos-20.09pre-git-x86_64-linux.iso/iso/nixos-20.09pre-git-x86_64-linux.iso /dev/sdb

    $ picocom -b 115200 /dev/ttyUSB0
2020-12-22 16:16:15 +08:00
..
config console: remove console.extraTTYs option 2020-12-17 21:29:33 +01:00
hardware nixos/acpilight: add to packages 2020-11-12 05:22:18 +03:00
i18n/input-method hime: fix enable hime, remove hime-all package 2020-10-17 10:48:31 +08:00
installer iso-image: add 'serial console' boot entry 2020-12-22 16:16:15 +08:00
misc Revert "Module-builtin assertions, disabling assertions and submodule assertions" 2020-12-18 16:44:37 +01:00
profiles nixos/hardened: update blacklisted filesystems 2020-09-27 06:16:58 +00:00
programs Merge pull request #103813 from symphorien/firejail 2020-12-04 09:00:15 +01:00
security Merge pull request #101482 from m1cr0man/jwsfix 2020-12-20 11:06:19 +01:00
services nixos/codimd: rename to hedgedoc 2020-12-22 01:39:03 +01:00
system Revert "Module-builtin assertions, disabling assertions and submodule assertions" 2020-12-18 16:44:37 +01:00
tasks nixos auto-upgrade: remove flag when flake 2020-11-25 08:34:04 +01:00
testing nixos/tests: only apply qemu parameters if the options are defined 2020-10-25 13:42:01 +01:00
virtualisation nixos: fix "nixos-rebuild build-vm-with-bootloader" for EFI systems 2020-12-21 08:55:13 +01:00
module-list.nix nixos/codimd: rename to hedgedoc 2020-12-22 01:39:03 +01:00
rename.nix frab: remove package 2020-12-10 22:24:11 +01:00