nixpkgs/nixos/modules/installer/cd-dvd
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
..
channel.nix nixos/modules/installer/cd-dvd/channel.nix: Handle null config.system.nixos.revision 2020-02-15 20:16:14 +01:00
installation-cd-base.nix Merge pull request #84476 from jakobrs/installation-cd-base-terminus 2020-04-29 17:20:49 +01:00
installation-cd-graphical-base.nix installation-cd-graphical-base.nix: adding git (#79098) 2020-02-14 18:52:18 +02:00
installation-cd-graphical-gnome.nix installation-cd-graphical-gnome: add firefox to favorite-apps 2020-10-24 11:14:44 -04:00
installation-cd-graphical-plasma5-new-kernel.nix nixos/release: rename iso_graphical to iso_plasma5 2020-01-27 16:34:37 -05:00
installation-cd-graphical-plasma5.nix nixos/displayManager: make autoLogin options independent of DM type 2020-07-09 21:15:35 -04:00
installation-cd-minimal-new-kernel.nix [bot] nixos/*: remove unused arguments in lambdas 2018-07-20 20:56:59 +00:00
installation-cd-minimal.nix Revert "Revert "iso-image: normalize volumeID"" 2020-04-09 20:06:32 -04:00
iso-image.nix iso-image: add 'serial console' boot entry 2020-12-22 16:16:15 +08:00
sd-image-aarch64-new-kernel.nix nixos/sd-image-aarch64-new-kernel: Added to release 2018-12-26 11:03:32 +00:00
sd-image-aarch64.nix nixos/sd-image-*: use boot.loader.generic-extlinux-compatible.populateCmd 2020-06-21 13:48:17 +02:00
sd-image-armv7l-multiplatform.nix nixos/sd-image-*: use boot.loader.generic-extlinux-compatible.populateCmd 2020-06-21 13:48:17 +02:00
sd-image-raspberrypi4.nix treewide: completely remove types.loaOf 2020-09-02 00:42:50 +02:00
sd-image-raspberrypi.nix nixos/sd-image-*: use boot.loader.generic-extlinux-compatible.populateCmd 2020-06-21 13:48:17 +02:00
sd-image.nix nixos/sd-image: explicit reference to the gawk package 2020-12-12 15:43:09 +00:00
system-tarball-fuloong2f.nix treewide: replace depecated alias s/mssys/ms-sys/g 2018-03-22 10:13:21 +00:00
system-tarball-pc-readme.txt nixos/*: editorconfig fixes 2020-08-08 10:54:16 +10:00
system-tarball-pc.nix treewide: use attrs instead of list for types.loaOf options 2020-01-06 10:39:18 -05:00
system-tarball-sheevaplug.nix utillinux: rename to util-linux 2020-11-24 12:42:06 -05:00
system-tarball.nix treewide: use attrs instead of list for types.loaOf options 2020-01-06 10:39:18 -05:00