* nixos-installer -> nixos-install.

svn path=/nixos/trunk/; revision=7852
This commit is contained in:
Eelco Dolstra 2007-02-06 10:46:36 +00:00
parent 3481970525
commit 25684805d5
4 changed files with 7 additions and 7 deletions

6
README
View File

@ -58,7 +58,7 @@
- Do the installation: - Do the installation:
$ nixos-installer.sh ROOTDIR . my-config.nix $ nixos-install.sh ROOTDIR . my-config.nix
where ROOTDIR is the mount point of the target root device (i.e., where ROOTDIR is the mount point of the target root device (i.e.,
boot.rootDevice in your configuration). boot.rootDevice in your configuration).
@ -131,9 +131,9 @@ To get out of maintenance mode:
- Testing the installer: - Testing the installer:
$ nix-build configuration/rescue-cd.nix -A system.nixosInstaller $ nix-build configuration/rescue-cd.nix -A system.nixosInstall
$ dd if=/dev/zero of=diskimage seek=2G count=0 bs=1 $ dd if=/dev/zero of=diskimage seek=2G count=0 bs=1
$ yes | mke2fs -j diskimage $ yes | mke2fs -j diskimage
$ mount -o loop diskimage /mnt $ mount -o loop diskimage /mnt
$ ./result/bin/nixos-installer $ ./result/bin/nixos-install

View File

@ -5,8 +5,8 @@
}: }:
substituteAll { substituteAll {
name = "nixos-installer"; name = "nixos-install";
src = ./nixos-installer.sh; src = ./nixos-install.sh;
dir = "bin"; dir = "bin";
isExecutable = true; isExecutable = true;
inherit nix nixpkgsURL perl; inherit nix nixpkgsURL perl;

View File

@ -110,7 +110,7 @@ rec {
# The installer. # The installer.
nixosInstaller = import ../installer/nixos-installer.nix { nixosInstall = import ../installer/nixos-install.nix {
inherit (pkgs) stdenv perl runCommand substituteAll; inherit (pkgs) stdenv perl runCommand substituteAll;
inherit nix; inherit nix;
nixpkgsURL = config.get ["installer" "nixpkgsURL"]; nixpkgsURL = config.get ["installer" "nixpkgsURL"];
@ -185,7 +185,7 @@ rec {
pkgs.utillinux pkgs.utillinux
# pkgs.vim # pkgs.vim
nix nix
nixosInstaller nixosInstall
setuidWrapper setuidWrapper
]; ];