summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander Ried <ried@mytum.de>2017-09-19 23:01:36 +0200
committerFranz Pletz <fpletz@fnordicwalking.de>2017-09-27 23:37:24 +0200
commit4a2442032ee5bc06f225bd5666b0f6813026b42f (patch)
treef0665fefcfcbdb17541e02fb542d2ce209846500
parent23f398012b420e9e5293a21d62ed838062b8235a (diff)
downloadnixlib-4a2442032ee5bc06f225bd5666b0f6813026b42f.tar
nixlib-4a2442032ee5bc06f225bd5666b0f6813026b42f.tar.gz
nixlib-4a2442032ee5bc06f225bd5666b0f6813026b42f.tar.bz2
nixlib-4a2442032ee5bc06f225bd5666b0f6813026b42f.tar.lz
nixlib-4a2442032ee5bc06f225bd5666b0f6813026b42f.tar.xz
nixlib-4a2442032ee5bc06f225bd5666b0f6813026b42f.tar.zst
nixlib-4a2442032ee5bc06f225bd5666b0f6813026b42f.zip
Revert "kbd service: use /dev/tty1 for systemd-vconsole-setup"
This reverts commit 0c81594a29d99d9ee9c9c88c680340d56823cfb2.

It's no longer needed since systemd-vconsole-setup enumerates all ttys
until it finds a suitable one since systemd v234.
-rw-r--r--nixos/modules/tasks/kbd.nix11
1 files changed, 0 insertions, 11 deletions
diff --git a/nixos/modules/tasks/kbd.nix b/nixos/modules/tasks/kbd.nix
index 3975dd5b0ffd..a01f35fea037 100644
--- a/nixos/modules/tasks/kbd.nix
+++ b/nixos/modules/tasks/kbd.nix
@@ -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"
-            ];
           };
       }