mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 16:45:49 +01:00
* Quick hack in the X server job: wait until udev is running, since we
need some devices. In particular this fixes the "Cannot open virtual console 7" errors in VirtualBox. (There's nothing special about VirtualBox, but the different timing makes it more likely to trigger this bug.) svn path=/nixos/branches/modular-nixos/; revision=15836
This commit is contained in:
parent
116306c8dc
commit
021c65da98
1 changed files with 8 additions and 0 deletions
|
@ -539,6 +539,14 @@ mkIf cfg.enable {
|
|||
|
||||
start script
|
||||
|
||||
# Ugly hack: wait until udev has started since the X server
|
||||
# needs various devices. This would more properly be
|
||||
# expressed as an Upstart dependency, but AFAIK in "start
|
||||
# on" we can't express a logical AND.
|
||||
while ! initctl status udev 2>&1 | grep -q running; do
|
||||
sleep 1
|
||||
done
|
||||
|
||||
rm -f /var/run/opengl-driver
|
||||
${if videoDriver == "nvidia"
|
||||
then ''
|
||||
|
|
Loading…
Reference in a new issue