* 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:
Eelco Dolstra 2009-06-03 08:14:54 +00:00
parent 116306c8dc
commit 021c65da98

View file

@ -538,6 +538,14 @@ mkIf cfg.enable {
start on ${if cfg.autorun then "hal" else "never"}
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"