nixpkgs-suyu/boot/boot-stage-2.nix
Eelco Dolstra 8851530afb * Setting boot.localCommands for anything you want to execute before
Upstart is started.

svn path=/nixos/trunk/; revision=8229
2007-03-06 00:45:33 +00:00

27 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 "boot.local" bootLocal;
}