Skip to content

Commit

Permalink
display-manager: Require systemd-udev-settle.service
Browse files Browse the repository at this point in the history
It was already ordered after systemd-udev-settle.service, but that
doesn't do anything if no other units require
systemd-udev-settle.service. This was causing random failures during X
server startup, e.g.

machine# [   12.691372] display-manager[607]: (EE) open /dev/dri/card0: No such file or directory

http://hydra.nixos.org/build/41062823
(cherry picked from commit e6bcff4)
  • Loading branch information
edolstra committed Oct 20, 2016
1 parent 0b20f6d commit 2eac61e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nixos/modules/services/x11/xserver.nix
Expand Up @@ -504,6 +504,7 @@ in
{ description = "X11 Server";

after = [ "systemd-udev-settle.service" "local-fs.target" "acpid.service" "systemd-logind.service" ];
wants = [ "systemd-udev-settle.service" ];

restartIfChanged = false;

Expand Down

1 comment on commit 2eac61e

@grahamc
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 nice fix

Please sign in to comment.