{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/22470","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/22470/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/22470/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/22470/events","html_url":"https://github.com/NixOS/nixpkgs/issues/22470","id":205451475,"number":22470,"title":"nixos-rebuild switch fails in X terminal","user":{"login":"volth","id":508305,"avatar_url":"https://avatars.githubusercontent.com/u/508305?v=3","gravatar_id":"","url":"https://api.github.com/users/volth","html_url":"https://github.com/volth","followers_url":"https://api.github.com/users/volth/followers","following_url":"https://api.github.com/users/volth/following{/other_user}","gists_url":"https://api.github.com/users/volth/gists{/gist_id}","starred_url":"https://api.github.com/users/volth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/volth/subscriptions","organizations_url":"https://api.github.com/users/volth/orgs","repos_url":"https://api.github.com/users/volth/repos","events_url":"https://api.github.com/users/volth/events{/privacy}","received_events_url":"https://api.github.com/users/volth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":22,"created_at":"2017-02-05T20:25:46Z","updated_at":"2017-02-14T15:33:38Z","closed_at":null,"body":"## Issue description\r\n\r\n```nixos-rebuild switch``` fails in X console with\r\n\r\n```\r\n● systemd-vconsole-setup.service - Setup Virtual Console                                                                                                                         \r\n   Loaded: loaded (/nix/store/zs7cny1d4g81m5fvggj8jg4d5s9wrmb2-systemd-232/example/systemd/system/systemd-vconsole-setup.service; enabled; vendor preset: enabled)               \r\n  Drop-In: /nix/store/5bjicxls5f25bg90qyilkpx26iy43hgq-system-units/systemd-vconsole-setup.service.d                                                                             \r\n           └─overrides.conf                                                                                                                                                      \r\n   Active: failed (Result: exit-code) since Sun 2017-02-05 20:18:54 UTC; 1s ago                                                                                                  \r\n     Docs: man:systemd-vconsole-setup.service(8)                                                                                                                                 \r\n           man:vconsole.conf(5)                                                                                                                                                  \r\n  Process: 15186 ExecStart=/nix/store/zs7cny1d4g81m5fvggj8jg4d5s9wrmb2-systemd-232/lib/systemd/systemd-vconsole-setup (code=exited, status=1/FAILURE)                            \r\n Main PID: 15186 (code=exited, status=1/FAILURE)                                                                                                                                 \r\n      CPU: 3ms                                                                                                                                                                   \r\n                                                                                                                                                                                 \r\nFeb 05 20:18:54 x220b systemd[1]: Starting Setup Virtual Console...                                                                                                              \r\nFeb 05 20:18:54 x220b systemd[1]: systemd-vconsole-setup.service: Main process exited, code=exited, status=1/FAILURE                                                             \r\nFeb 05 20:18:54 x220b systemd[1]: Failed to start Setup Virtual Console.                                                                                                         \r\nFeb 05 20:18:54 x220b systemd[1]: systemd-vconsole-setup.service: Unit entered failed state.                                                                                     \r\nFeb 05 20:18:54 x220b systemd[1]: systemd-vconsole-setup.service: Failed with result 'exit-code'.                                                                                \r\nwarning: error(s) occurred while switching to the new configuration                                                                                                              \r\n```\r\n\r\n\r\n```/nix/store/zs7cny1d4g81m5fvggj8jg4d5s9wrmb2-systemd-232/lib/systemd/systemd-vconsole-setup``` exits with\r\n```Virtual console /dev/tty0 is not in K_XLATE or K_UNICODE.```\r\n\r\nIn ```Ctrl-Alt-F1``` console it works without the problem.\r\n\r\n### Steps to reproduce\r\n\r\njust run ```nixos-rebuild switch```\r\n\r\n## Technical details\r\n\r\n* System: (NixOS: `nixos-version`, Ubuntu/Fedora: `lsb_release -a`, ...)\r\n17.03.git.5de7d45 (Gorilla) \r\n\r\n* Nix version: (run `nix-env --version`)\r\nnix-env (Nix) 1.11.6 \r\n\r\n* Nixpkgs version: (run `nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion`)\r\n\"17.03.git.5de7d45c91\"  "},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/279740645","html_url":"https://github.com/NixOS/nixpkgs/issues/22470#issuecomment-279740645","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/22470","id":279740645,"user":{"login":"abbradar","id":1174810,"avatar_url":"https://avatars.githubusercontent.com/u/1174810?v=3","gravatar_id":"","url":"https://api.github.com/users/abbradar","html_url":"https://github.com/abbradar","followers_url":"https://api.github.com/users/abbradar/followers","following_url":"https://api.github.com/users/abbradar/following{/other_user}","gists_url":"https://api.github.com/users/abbradar/gists{/gist_id}","starred_url":"https://api.github.com/users/abbradar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abbradar/subscriptions","organizations_url":"https://api.github.com/users/abbradar/orgs","repos_url":"https://api.github.com/users/abbradar/repos","events_url":"https://api.github.com/users/abbradar/events{/privacy}","received_events_url":"https://api.github.com/users/abbradar/received_events","type":"User","site_admin":false},"created_at":"2017-02-14T15:33:37Z","updated_at":"2017-02-14T15:33:37Z","body":"@lucas8 Awesome, thank you again! It seems strange that they need an argument at all and not just loop over everything in this case.\r\n\r\nI'll make a patch to set this to `/dev/tty1` later."}}
{"actor":{"display_login":"abbradar"}}