mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03:00
units: do not special-case getty@tty1.service installation
Since a long while we can use "systemctl enable getty@tty1.service" which does the right thing, so there's no need to abuse Alias= for installation.
This commit is contained in:
parent
92d430a9e0
commit
7aa4fa34f7
@ -20,9 +20,9 @@ After=rc-local.service
|
|||||||
Before=getty.target
|
Before=getty.target
|
||||||
IgnoreOnIsolate=yes
|
IgnoreOnIsolate=yes
|
||||||
|
|
||||||
# On systems without virtual consoles, don't start any getty. (Note
|
# On systems without virtual consoles, don't start any getty. Note
|
||||||
# that serial gettys are covered by serial-getty@.service, not this
|
# that serial gettys are covered by serial-getty@.service, not this
|
||||||
# unit
|
# unit.
|
||||||
ConditionPathExists=/dev/tty0
|
ConditionPathExists=/dev/tty0
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
@ -48,4 +48,4 @@ Environment=LANG= LANGUAGE= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= LC_MONETA
|
|||||||
KillSignal=SIGHUP
|
KillSignal=SIGHUP
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
Alias=getty.target.wants/getty@tty1.service
|
WantedBy=getty.target
|
||||||
|
Loading…
Reference in New Issue
Block a user