3
0
Fork 0
forked from mirrors/nixpkgs

nixos-install.sh: added --root parameter

Previously:
- setting the mountpoint was only possible through an environment variable
- a discrepancy from nixos-generate-config, which has --root
This commit is contained in:
Jaka Kranjc 2014-08-24 15:57:00 +02:00 committed by Eelco Dolstra
parent 3df019067d
commit 1d67ea1ce3

View file

@ -30,6 +30,9 @@ while [ "$#" -gt 0 ]; do
absolute_path=$(readlink -m $given_path)
extraBuildFlags+=("$i" "/mnt$absolute_path")
;;
--root)
mountPoint="$1"; shift 1
;;
--show-trace)
extraBuildFlags+=("$i")
;;