kbd service: don't restart systemd-vconsole-setup

Fixes #22470. Also remove non-relevant comment (we don't deviate from upstream
systemd unit anymore).
This commit is contained in:
Nikolay Amiantov 2017-02-08 21:50:31 +03:00
parent 6f7811143d
commit 5ff9a2a2cb

View File

@ -100,15 +100,12 @@ in
}
(mkIf (!config.boot.earlyVconsoleSetup) {
# This is identical to the systemd-vconsole-setup.service unit
# shipped with systemd, except that it uses /dev/tty1 instead of
# /dev/tty0 to prevent putting the X server in non-raw mode, and
# it has a restart trigger.
systemd.services."systemd-vconsole-setup" =
{ wantedBy = [ "sysinit.target" ];
before = [ "display-manager.service" ];
after = [ "systemd-udev-settle.service" ];
restartTriggers = [ vconsoleConf kbdEnv ];
restartIfChanged = false; # fails when tty is inactive
};
})