diff --git a/units/console-getty.service.m4.in b/units/console-getty.service.m4.in index ecf1db1102..8b6a4aba24 100644 --- a/units/console-getty.service.m4.in +++ b/units/console-getty.service.m4.in @@ -9,12 +9,14 @@ Description=Console Getty Documentation=man:agetty(8) man:systemd-getty-generator(8) After=systemd-user-sessions.service plymouth-quit-wait.service -ConditionPathExists=/dev/console m4_ifdef(`HAVE_SYSV_COMPAT', After=rc-local.service )m4_dnl Before=getty.target +# OCI containers may be run without a console +ConditionPathExists=/dev/console + [Service] # The '-o' option value tells agetty to replace 'login' arguments with an # option to preserve environment (-p), followed by '--' for safety, and then