]>
Commit | Line | Data |
---|---|---|
2d01364a SS |
1 | From 3305d6806d428010b1cd2abd716aa1bb7f81311f Mon Sep 17 00:00:00 2001 |
2 | From: Michal Schmidt <mschmidt@redhat.com> | |
3 | Date: Wed, 06 Jun 2012 09:26:30 +0000 | |
4 | Subject: units: avoid redundant VT clearing by agetty | |
5 | ||
6 | TTYVTDisallocate=yes already clears the VT. agetty does not need to do | |
7 | it again. Run it with --noclear. | |
8 | ||
9 | Felix Miata found the double clearing confusing in this bugreport: | |
10 | https://bugzilla.redhat.com/show_bug.cgi?id=828007 | |
11 | Add a comment explaining what clears the VT. | |
12 | --- | |
13 | diff --git a/units/getty@.service.m4 b/units/getty@.service.m4 | |
14 | index 6d45836..fcf1de1 100644 | |
15 | --- a/units/getty@.service.m4 | |
16 | +++ b/units/getty@.service.m4 | |
17 | @@ -41,7 +41,8 @@ ConditionPathExists=/dev/tty0 | |
18 | ||
19 | [Service] | |
20 | Environment=TERM=linux | |
21 | -ExecStart=-/sbin/agetty %I 38400 | |
22 | +# the VT is cleared by TTYVTDisallocate | |
23 | +ExecStart=-/sbin/agetty --noclear %I 38400 | |
24 | Type=idle | |
25 | Restart=always | |
26 | RestartSec=0 | |
27 | -- | |
28 | cgit v0.9.0.2-2-gbebe |