Artix Linux Forum

Init systems => S6 => Topic started by: calvinh on 27 April 2021, 04:22:19

Title: error messages from agetty-serial
Post by: calvinh on 27 April 2021, 04:22:19
Every 10 seconds, service agetty-serial logs the following message in /var/log/errors.log.

"/dev/ttyAMA0: cannot open as standard input: No such file or directory"

Looks like something left over from ARM implementation.
Title: Re: error messages from agetty-serial
Post by: phoenix_king_rus on 27 April 2021, 08:07:38
Yes, ARM usually requires serial tty to be enabled. I think setting SPAWN="no" in /etc/s6/sv/agetty-serial/conf should do the trick
Title: Re: error messages from agetty-serial
Post by: Dudemanguy on 27 April 2021, 14:52:16
I should probably make that "no" by default.
Title: Re: error messages from agetty-serial
Post by: calvinh on 27 April 2021, 16:25:42
I should probably make that "no" by default.

That's OK. Simple fix. Can make it in next build.
Title: Re: error messages from agetty-serial
Post by: Dudemanguy on 27 April 2021, 17:28:45
Better idea, I'll rewrite the agetty scripts to check for the existence /dev/tty{whatever}.
Title: Re: error messages from agetty-serial
Post by: calvinh on 27 April 2021, 17:32:37
Yes, ARM usually requires serial tty to be enabled. I think setting SPAWN="no" in /etc/s6/sv/agetty-serial/conf should do the trick

Thanks for confirming.
Title: Re: error messages from agetty-serial
Post by: Dudemanguy on 28 April 2021, 18:51:04
Should be fixed now with the latest s6-scripts.