Skip to content

Commit 858beb3

Browse files
committed
units/console-getty.service: comment reason for ConditionPathExists
Currently we have 4 getty services. 1 has a BindsTo dependency on a device unit. 3 have ConditionPathExists, but the reason is different in every single one. * Add comment to [email protected] (see commit 1b41981) * [email protected] is already commented * container-getty.service is not strictly correct, as I realized while trying to compose a comment. Reported as systemd#6584.
1 parent 8522ee7 commit 858beb3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

units/console-getty.service.m4.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@
99
Description=Console Getty
1010
Documentation=man:agetty(8) man:systemd-getty-generator(8)
1111
After=systemd-user-sessions.service plymouth-quit-wait.service
12-
ConditionPathExists=/dev/console
1312
m4_ifdef(`HAVE_SYSV_COMPAT',
1413
After=rc-local.service
1514
)m4_dnl
1615
Before=getty.target
1716

17+
# OCI containers may be run without a console
18+
ConditionPathExists=/dev/console
19+
1820
[Service]
1921
# The '-o' option value tells agetty to replace 'login' arguments with an
2022
# option to preserve environment (-p), followed by '--' for safety, and then

0 commit comments

Comments
 (0)