nixpkgs/boot/boot-stage-2.nix
Eelco Dolstra 49e8829053 * Use unionfs to provide a real Live CD, i.e., the files on the CD
appear writable (though all writes go to a tmpfs).  This allows you
  to run Nix operations on the Live CD.  However, we're not quite
  there yet since the CD doesn't have a valid Nix database.  So for
  instance a garbage collect will cause everything to be deleted,
  hanging the system.

svn path=/nixos/trunk/; revision=10276
2008-01-24 16:56:09 +00:00

28 lines
614 B
Nix

{ substituteAll, writeText, coreutils
, utillinux, kernel, udev, upstart
, activateConfiguration
, # Whether the root device is read-only and should be made writable
# through a unionfs.
isLiveCD
, # 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 isLiveCD activateConfiguration upstartPath;
path = [
coreutils
utillinux
udev
upstart
];
bootLocal = writeText "local-cmds" bootLocal;
}