summaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2012-06-06 11:26:30 +0200
committerMichal Schmidt <mschmidt@redhat.com>2012-06-06 11:33:18 +0200
commit3305d6806d428010b1cd2abd716aa1bb7f81311f (patch)
treecc4cac6d6a54abaf95e9a7fa3863e734e0331000 /units
parentcae544bcdb073134bcaa2031aeb1f1705030046e (diff)
units: avoid redundant VT clearing by agetty
TTYVTDisallocate=yes already clears the VT. agetty does not need to do it again. Run it with --noclear. Felix Miata found the double clearing confusing in this bugreport: https://bugzilla.redhat.com/show_bug.cgi?id=828007 Add a comment explaining what clears the VT.
Diffstat (limited to 'units')
-rw-r--r--units/getty@.service.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/units/getty@.service.m4 b/units/getty@.service.m4
index 6d458360a4..fcf1de197f 100644
--- a/units/getty@.service.m4
+++ b/units/getty@.service.m4
@@ -41,7 +41,8 @@ ConditionPathExists=/dev/tty0
[Service]
Environment=TERM=linux
-ExecStart=-/sbin/agetty %I 38400
+# the VT is cleared by TTYVTDisallocate
+ExecStart=-/sbin/agetty --noclear %I 38400
Type=idle
Restart=always
RestartSec=0