mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03: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
2 changed files with 9 additions and 4 deletions
|
@ -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
|
||||
'';
|
||||
|
||||
};
|
||||
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue