Control: tags -1 patch upstream
Control: forwarded -1
https://www.google.com/url?q=https://gitlab.freedesktop.org/plymouth/plymouth/-/merge_requests/523&source=gmail&ust=1796159358377000&sa=E

Hi,

I've been hitting what looks like the same hang for more than a year on
Debian sid, mostly on live boots right after switch-root, and a keypress
always got it going again. A sysrq-t dump showed plymouthd blocked in a
read on the terminal (n_tty_read), and PID 1 blocked writing to
/dev/console behind it.

plymouthd polls the terminal before it reads, but the terminal fd is
blocking. systemd reads back the reply to its terminal size query, so the
byte the poll saw is gone, and plymouthd's read waits for the next key.
This upstream merge request fixes it with a separate non-blocking fd for
input:

https://www.google.com/url?q=https://gitlab.freedesktop.org/plymouth/plymouth/-/merge_requests/523&source=gmail&ust=1796159358377000&sa=E

It applies to 26.134.222-1 as it is. Another user and I have both posted
test results on the merge request. Without a fix our nightly boots hung
2 in 298. With my own earlier fix (a non-blocking terminal fd) there
were 0 hangs in about 850 boots, and I have carried only this merge
request since 2026-11-30 with no problems so far.

systemd 262.1 (in sid since 2026-10-16) no longer queries the terminal
size on virtual consoles, which removes this trigger, but plymouth should
still not block on a shared terminal.

Thanks, Kel

Reply via email to