From b5b78055431157456703742cfec770f2ff3e6675 Mon Sep 17 00:00:00 2001 From: Rickard Nilsson Date: Mon, 1 Feb 2016 10:37:41 +0100 Subject: nixos-rebuild: Do not create result symlinks for boot/switch actions (resolves #12665) --- nixos/modules/installer/tools/nixos-rebuild.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nixos/modules/installer') diff --git a/nixos/modules/installer/tools/nixos-rebuild.sh b/nixos/modules/installer/tools/nixos-rebuild.sh index 105d1cd16252..f758c08d3b75 100644 --- a/nixos/modules/installer/tools/nixos-rebuild.sh +++ b/nixos/modules/installer/tools/nixos-rebuild.sh @@ -329,7 +329,7 @@ fi if [ -z "$rollback" ]; then echo "building the system configuration..." >&2 if [ "$action" = switch -o "$action" = boot ]; then - pathToConfig="$(nixBuild '' -A system "${extraBuildFlags[@]}")" + pathToConfig="$(nixBuild '' --no-out-link -A system "${extraBuildFlags[@]}")" copyToTarget "$pathToConfig" targetHostCmd nix-env -p "$profile" --set "$pathToConfig" elif [ "$action" = test -o "$action" = build -o "$action" = dry-build -o "$action" = dry-activate ]; then -- cgit 1.4.1