mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-05 22:06:00 +03:00
* 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:
|
||||
|
||||
$ 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.,
|
||||
boot.rootDevice in your configuration).
|
||||
@ -131,9 +131,9 @@ To get out of maintenance mode:
|
||||
|
||||
- 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
|
||||
$ yes | mke2fs -j diskimage
|
||||
$ mount -o loop diskimage /mnt
|
||||
$ ./result/bin/nixos-installer
|
||||
$ ./result/bin/nixos-install
|
||||
|
||||
|
@ -5,8 +5,8 @@
|
||||
}:
|
||||
|
||||
substituteAll {
|
||||
name = "nixos-installer";
|
||||
src = ./nixos-installer.sh;
|
||||
name = "nixos-install";
|
||||
src = ./nixos-install.sh;
|
||||
dir = "bin";
|
||||
isExecutable = true;
|
||||
inherit nix nixpkgsURL perl;
|
@ -110,7 +110,7 @@ rec {
|
||||
|
||||
|
||||
# The installer.
|
||||
nixosInstaller = import ../installer/nixos-installer.nix {
|
||||
nixosInstall = import ../installer/nixos-install.nix {
|
||||
inherit (pkgs) stdenv perl runCommand substituteAll;
|
||||
inherit nix;
|
||||
nixpkgsURL = config.get ["installer" "nixpkgsURL"];
|
||||
@ -185,7 +185,7 @@ rec {
|
||||
pkgs.utillinux
|
||||
# pkgs.vim
|
||||
nix
|
||||
nixosInstaller
|
||||
nixosInstall
|
||||
setuidWrapper
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user