diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2009-06-17 10:07:31 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2009-06-17 10:07:31 +0000 |
commit | c3ea825c234a5a165714c145453862a912cb8b05 (patch) | |
tree | 549dc64326d63023fa13a0c1edd078ab77fe05f9 /modules/installer/tools/nixos-install.sh | |
parent | 16937dd23d5839bc60091dc30b4a3372a175145e (diff) | |
download | nixpkgs-c3ea825c234a5a165714c145453862a912cb8b05.tar nixpkgs-c3ea825c234a5a165714c145453862a912cb8b05.tar.gz nixpkgs-c3ea825c234a5a165714c145453862a912cb8b05.tar.bz2 nixpkgs-c3ea825c234a5a165714c145453862a912cb8b05.tar.lz nixpkgs-c3ea825c234a5a165714c145453862a912cb8b05.tar.xz nixpkgs-c3ea825c234a5a165714c145453862a912cb8b05.tar.zst nixpkgs-c3ea825c234a5a165714c145453862a912cb8b05.zip |
* Fix installing from the modular branch. system/system.nix no longer
exists. $NIXPKGS needs to be set, otherwise NixOS can't find Nixpkgs (because in the chroot it's in /mnt/etc/nixos/nixpkgs). Also clear LANG to shut up Perl warnings about the locale. svn path=/nixos/branches/modular-nixos/; revision=15978
Diffstat (limited to 'modules/installer/tools/nixos-install.sh')
-rw-r--r-- | modules/installer/tools/nixos-install.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/installer/tools/nixos-install.sh b/modules/installer/tools/nixos-install.sh index b90ffe4145c..f9baa0e891a 100644 --- a/modules/installer/tools/nixos-install.sh +++ b/modules/installer/tools/nixos-install.sh @@ -110,6 +110,10 @@ for i in $storePaths; do done +# We don't have locale-archive in the chroot, so clear $LANG. +export LANG= + + # Register the paths in the Nix closure as valid. This is necessary # to prevent them from being deleted the first time we install # something. (I.e., Nix will see that, e.g., the glibc path is not @@ -143,9 +147,9 @@ fi # Build the specified Nix expression in the target store and install # it into the system configuration profile. echo "building the system configuration..." -chroot $mountPoint @nix@/bin/nix-env \ +NIXPKGS=/mnt/etc/nixos/nixpkgs chroot $mountPoint @nix@/bin/nix-env \ -p /nix/var/nix/profiles/system \ - -f "/mnt$NIXOS/system/system.nix" \ + -f "/mnt$NIXOS" \ --arg configuration "import $NIXOS_CONFIG" \ --set -A system |