Re: [PATCH 12/20] host/rootfs: Do not read from /dev/tty1

Demi Marie Obenour
2025-09-19T19:00:50Z

[-- Attachment #1.1.1: Type: text/plain, Size: 1104 bytes --]

On 9/19/25 14:22, Alyssa Ross wrote:
> Demi Marie Obenour <demiobenour@gmail.com> writes:
>
>> On 9/8/25 05:19, Alyssa Ross wrote:
>>> Demi Marie Obenour <demiobenour@gmail.com> writes:
>>>
>>>> This breaks debugging because data written goes both to Weston (or its
>>>> subprocesses) and to getty.
>>>>
>>>> Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
>>>
>>> Can you give some more detail?
>>
>> I was having problems logging in until I made this change.
>> login was complaining that the username I passed was invalid,
>> which turned out to be because it included only a subset of
>> the characters I typed.
>
> Okay, interesting. I haven't seen that. I think I did this because the
> example systemd unit for Weston[1] sets StandardInput=tty-fail. What do
> you think of that?
>
> [1]: https://wayland.pages.freedesktop.org/weston/toc/running-weston.html#running-weston-from-a-systemd-service

In that case, I think it is best to make sure any child
processes Weston spawns redirect stdin to /dev/null.
--
Sincerely,
Demi Marie Obenour (she/her/hers)

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 7253 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]