Hi,

Quoting Samuel Thibault (2026-06-28 23:04:30)
> Johannes Schauer Marin Rodrigues, le dim. 28 juin 2026 22:25:04 +0200, a 
> ecrit:
> > Quoting Samuel Thibault (2026-06-28 21:45:10)
> > > Johannes Schauer Marin Rodrigues, le dim. 28 juin 2026 21:31:20 +0200, a 
> > > ecrit:
> > > > getty[645]: Bad syntax
> > > 
> > > What command do you have in /etc/inittab? What option triggers that "Bad
> > > syntax"?
> > 
> > I quoted it in the email you just replied to. :)
> > 
> > Here it is:
> > 
> > C0:2345:respawn:/sbin/agetty -8 --noclear --keep-baud -a root console 
> > 115200,38400,9600 $TERM
> 
> But then I'm lost: you mentioned that "The magic switch to getty is -a".  But
> apparently there are more options that need to get supported?

No, I can make the call to getty (it has to be getty from src:hurd not agetty
from src:util-linux, right?) specific to Hurd. The "magic switch" comment was
because debvm configures auto-login by default on Linux. The -a switch was
missing until you implemented it. Hurd does not need to support all the opitons
which you see in the agetty command above. Adding a Hurd-specific getty line to
/etc/inittab is not an issue. It was even a possibility to declare "Hurd does
not support auto-login" but since you implemented -a that is moot I guess. :)

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?

Thanks!

cheers, josch

Attachment: signature.asc
Description: signature

Reply via email to