mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 22:23:15 +00:00
aab8fda25a
executed after the network interfaces have been initialised. svn path=/nixos/trunk/; revision=8752
28 lines
631 B
Nix
28 lines
631 B
Nix
{ substituteAll, writeText, coreutils
|
|
, utillinux, kernel, udev, upstart
|
|
, activateConfiguration
|
|
|
|
, # Whether the root device is root only. If so, we'll mount a
|
|
# ramdisk on /etc, /var and so on.
|
|
readOnlyRoot
|
|
|
|
, # Path for Upstart jobs. Should be quite minimal.
|
|
upstartPath
|
|
|
|
, # User-supplied command to be run just before Upstart is started.
|
|
bootLocal ? ""
|
|
}:
|
|
|
|
substituteAll {
|
|
src = ./boot-stage-2-init.sh;
|
|
isExecutable = true;
|
|
inherit kernel upstart readOnlyRoot activateConfiguration upstartPath;
|
|
path = [
|
|
coreutils
|
|
utillinux
|
|
udev
|
|
upstart
|
|
];
|
|
bootLocal = writeText "local-cmds" bootLocal;
|
|
}
|