From efd2447699c59c530f25b135986313b0a40dd0cb Mon Sep 17 00:00:00 2001 From: Darshaka Pathirana Date: Fri, 14 Dec 2018 13:34:29 +0100 Subject: [PATCH] Enable serial-getty with root autologin on every given device With the kernel command line paramter / bootoption `console=device,options`[1](https://www.kernel.org/doc/html/latest/admin-guide/serial-console.html) it is possible to use a serial port as console. So far we only enabled root autologin for the serial port ttyS0, but it should be enabled on every given device as we do not have any password set for any user, which meant that no login was possible at all (on a serial port other than ttyS0). The serial port ttyS1 can be tested with QEMU/KVM like this:: kvm -m 512 -serial pty -serial pty -cdrom grml.iso This adds two serial ports (ttyS0 and ttyS1) to the VM and redirect its output to /dev/pts/*. On the Grml boot prompt then add "console=ttyS1" to redirect the output to second serial console. Thanks: @MichaelEischer for the bug report Closes: grml/grml#104 --- .../override.conf/GRMLBASE | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename etc/grml/fai/config/files/etc/systemd/system/{serial-getty@ttyS0.service.d => serial-getty@.service.d}/override.conf/GRMLBASE (100%) diff --git a/etc/grml/fai/config/files/etc/systemd/system/serial-getty@ttyS0.service.d/override.conf/GRMLBASE b/etc/grml/fai/config/files/etc/systemd/system/serial-getty@.service.d/override.conf/GRMLBASE similarity index 100% rename from etc/grml/fai/config/files/etc/systemd/system/serial-getty@ttyS0.service.d/override.conf/GRMLBASE rename to etc/grml/fai/config/files/etc/systemd/system/serial-getty@.service.d/override.conf/GRMLBASE -- 2.1.4