Skip to content

Commit

Permalink
Revert "kbd service: use /dev/tty1 for systemd-vconsole-setup"
Browse files Browse the repository at this point in the history
This reverts commit 0c81594.

It's no longer needed since systemd-vconsole-setup enumerates all ttys
until it finds a suitable one since systemd v234.
  • Loading branch information
groxxda authored and fpletz committed Sep 27, 2017
1 parent 23f3980 commit 4a24420
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions nixos/modules/tasks/kbd.nix
Expand Up @@ -98,22 +98,11 @@ in
'') config.i18n.consoleColors}
'';

/* XXX: systemd-vconsole-setup needs a "main" terminal. By default
* /dev/tty0 is used which wouldn't work when the service is restarted
* from X11. We set this to /dev/tty1; not ideal because it may also be
* owned by X11 or something else.
*
* See #22470.
*/
systemd.services."systemd-vconsole-setup" =
{ wantedBy = [ "sysinit.target" ];
before = [ "display-manager.service" ];
after = [ "systemd-udev-settle.service" ];
restartTriggers = [ vconsoleConf kbdEnv ];
serviceConfig.ExecStart = [
""
"${pkgs.systemd}/lib/systemd/systemd-vconsole-setup /dev/tty1"
];
};
}

Expand Down

0 comments on commit 4a24420

Please sign in to comment.