mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00:00
7bba427e93
more-or-less "asynchronous" booting: the login prompt appears almost immediately, before the hardware and the network are started. svn path=/nixu/trunk/; revision=7082
26 lines
502 B
Nix
26 lines
502 B
Nix
{ genericSubstituter, shell, coreutils, findutils
|
|
, utillinux, kernel, udev, upstart
|
|
, path ? []
|
|
|
|
, # Whether the root device is root only. If so, we'll mount a
|
|
# ramdisk on /etc, /var and so on.
|
|
readOnlyRoot
|
|
|
|
, # The Upstart job configuration.
|
|
upstartJobs
|
|
}:
|
|
|
|
genericSubstituter {
|
|
src = ./boot-stage-2-init.sh;
|
|
isExecutable = true;
|
|
inherit shell kernel upstart readOnlyRoot upstartJobs;
|
|
path = [
|
|
coreutils
|
|
findutils
|
|
utillinux
|
|
udev
|
|
upstart
|
|
];
|
|
extraPath = path;
|
|
}
|