1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

* Run udevtrigger in a separate job. This speeds up booting because

it allows the `mountall' task to start mounting filesystems as soon
  as udev is running and devices become available (i.e. it doesn't
  have to wait for all devices).  This means that some jobs should
  depend on "stopped udevtrigger" instead of "started udev".

svn path=/nixos/branches/boot-order/; revision=22167
This commit is contained in:
Eelco Dolstra 2010-06-07 12:39:50 +00:00
parent 085a47c88a
commit 48fdc931a4
2 changed files with 9 additions and 4 deletions

View file

@ -185,8 +185,14 @@ in
daemonType = "fork";
exec = "${udev}/sbin/udevd --daemon";
};
postStart =
jobs.udevtrigger =
{ startOn = "started udev";
task = true;
script =
''
# Let udev create device nodes for all modules that have already
# been loaded into the kernel (or for which support is built into
@ -200,9 +206,8 @@ in
initctl emit -n new-devices
'';
};
};
}

View file

@ -408,7 +408,7 @@ in
optional (elem "virtualbox" driverNames) kernelPackages.virtualboxGuestAdditions;
jobs.xserver =
{ startOn = if cfg.autorun then "started udev and started hal" else "";
{ startOn = if cfg.autorun then "filesystem and stopped udevtrigger and started hal" else "";
environment =
{ FONTCONFIG_FILE = "/etc/fonts/fonts.conf"; # !!! cleanup