Hi!

On Mon, 2026-06-29 at 00:21:15 +0200, Johannes Schauer Marin Rodrigues wrote:
> If I look at my current /etc/inittab it tells me:
> 
> # Example how to put a getty on a serial line (for a terminal)
> #
> #T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
> #T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100
> 
> I don't have /dev/ttyS0 and my /proc/cmdline says console=com0 and that one
> also seems to exist:
> 
> root@testvm:~# ls -l /dev/com0
> crw------- 1 root root 0, 0 Jun 28 19:18 /dev/com0
> 
> So I should probably have this in my /etc/inittab, right?
> 
> T0:23:respawn:/sbin/getty -L com0 9600 vt100
> 
> But then I still get "getty[656]: Bad syntax". What getty invocation is known
> to work for a serial getty in a qemu guest?

Checking the source for Hurd's getty, I see that the "Bad syntax" error
triggers when argc != 3, checking further, I don't see any support for
-L (so that would make argc off by one as it is left there), so I assume
that removing that would make it work?

Thanks,
Guillem

Reply via email to