summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorJanne Heß <janne@hess.ooo>2018-10-14 20:12:08 +0200
committerJanne Heß <janne@hess.ooo>2018-10-14 20:12:08 +0200
commit7748c3da1b116055c637a2441e1f0e9434f82f00 (patch)
tree6b6c4269c1c06fc33eca468ade28cf60909ed0b1 /nixos
parent4207f01f27fb6f3ba22c4720d529812601ad87f1 (diff)
downloadnixlib-7748c3da1b116055c637a2441e1f0e9434f82f00.tar
nixlib-7748c3da1b116055c637a2441e1f0e9434f82f00.tar.gz
nixlib-7748c3da1b116055c637a2441e1f0e9434f82f00.tar.bz2
nixlib-7748c3da1b116055c637a2441e1f0e9434f82f00.tar.lz
nixlib-7748c3da1b116055c637a2441e1f0e9434f82f00.tar.xz
nixlib-7748c3da1b116055c637a2441e1f0e9434f82f00.tar.zst
nixlib-7748c3da1b116055c637a2441e1f0e9434f82f00.zip
nixos/nixos-install: Unset system
The system variable is used from the (possibly polluted) shell
environment.
This causes nixos-install to fail in a nix-shell because the system
shell variable is automatically set to the current system (e.g.
x86_64-linux).
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/installer/tools/nixos-install.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/installer/tools/nixos-install.sh b/nixos/modules/installer/tools/nixos-install.sh
index 22c1e0fe9a34..defc46ad2a72 100644
--- a/nixos/modules/installer/tools/nixos-install.sh
+++ b/nixos/modules/installer/tools/nixos-install.sh
@@ -13,6 +13,7 @@ extraBuildFlags=()
 
 mountPoint=/mnt
 channelPath=
+system=
 
 while [ "$#" -gt 0 ]; do
     i="$1"; shift 1