mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
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:
parent
3df019067d
commit
1d67ea1ce3
1 changed files with 3 additions and 0 deletions
|
@ -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")
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue