mirror of
https://github.com/floci-io/floci.git
synced 2026-11-26 07:11:11 -05:00
A privileged systemd EC2 guest could hang up the Docker host's virtual-console sessions. Systemd guests now start /sbin/init with systemd.mask= arguments for the getty units, which systemd reads from PID 1's command line once container=docker marks the guest as a container, and get /dev/null mounted read-only over /dev/console and /dev/tty0 through /dev/tty63. Pseudo-terminals stay available for SSH. Docker applies the mounts when it creates the container, so existing systemd instances need recreating. Closes #9342