* nixos-installer -> nixos-install.
svn path=/nixos/trunk/; revision=7852
This commit is contained in:
parent
3481970525
commit
25684805d5
6
README
6
README
@ -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
|
||||||
|
|
||||||
|
@ -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;
|
@ -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
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user