nixpkgs/boot/boot-stage-2.nix
Eelco Dolstra aab8fda25a * Option `networking.localCommands' to specify shell commands to be
executed after the network interfaces have been initialised.

svn path=/nixos/trunk/; revision=8752
2007-05-24 14:50:17 +00:00

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;
}