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:
parent
085a47c88a
commit
48fdc931a4
|
@ -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
|
||||
'';
|
||||
|
||||
};
|
||||
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue