Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
systemd: Add a temporary console fix until moby fixes it
This issue affects console output when running systemd in docker container because moby doesn't correctly manage POLLHUP hangup. The issue was initially created in systemd systemd/systemd#4262 and later redirected to moby moby/moby#27202 . This affects versions after 232 where fd0 fd1 fd2 are redirected to /dev/null leaving no file descriptor pointing to /dev/console. When that happens docker, the pty master, will close the pty and any attempts to open /dev/console will return EIO. This patch removes the /dev/null redirection when running in container. We can get rid of it when moby fixes the issue referenced above. Change-type: patch CHangelog-entry: Fix console output when running resinOS with systemd >= 232 Signed-off-by: Andrei Gherzan <[email protected]>
- Loading branch information