mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03: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
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user