49e8829053
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
27 lines
614 B
Nix
27 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;
|
|
}
|