mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 20:23:02 +00:00
* Add the installer and rsync to the path.
svn path=/nixu/trunk/; revision=6979
This commit is contained in:
parent
6705045334
commit
4b333e0f67
@ -3,6 +3,7 @@
|
||||
|
||||
genericSubstituter {
|
||||
src = ./installer.sh;
|
||||
dir = "bin";
|
||||
isExecutable = true;
|
||||
inherit shell nix;
|
||||
|
||||
|
@ -37,5 +37,5 @@ mount "$targetDevice" $mountPoint || exit 1
|
||||
|
||||
# Copy Nix to the Nix store on the target device.
|
||||
mkdir -p $mountPoint/nix/store/
|
||||
cp -prd $(cat @nixClosure@) $mountPoint/nix/store/ || exit 1
|
||||
rsync -av $(cat @nixClosure@) $mountPoint/nix/store/ || exit 1
|
||||
|
||||
|
@ -60,6 +60,13 @@ rec {
|
||||
};
|
||||
|
||||
|
||||
# The installer.
|
||||
nixosInstaller = import ./installer.nix {
|
||||
inherit (pkgs) stdenv genericSubstituter nix;
|
||||
shell = pkgs.bash + "/bin/sh";
|
||||
};
|
||||
|
||||
|
||||
# The init script of boot stage 2, which is supposed to do
|
||||
# everything else to bring up the system.
|
||||
bootStage2 = import ./boot-stage-2.nix {
|
||||
@ -92,19 +99,14 @@ rec {
|
||||
pkgs.procps
|
||||
pkgs.shadowutils
|
||||
pkgs.sysklogd
|
||||
pkgs.rsync
|
||||
nixosInstaller
|
||||
];
|
||||
|
||||
mingetty = pkgs.mingettyWrapper;
|
||||
};
|
||||
|
||||
|
||||
# The installer.
|
||||
nixosInstaller = import ./installer.nix {
|
||||
inherit (pkgs) stdenv genericSubstituter nix;
|
||||
shell = pkgs.bash + "/bin/sh";
|
||||
};
|
||||
|
||||
|
||||
# Since the CD is read-only, the mount points must be on disk.
|
||||
cdMountPoints = pkgs.stdenv.mkDerivation {
|
||||
name = "mount-points";
|
||||
|
Loading…
Reference in New Issue
Block a user