aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-07-12 17:00:38 +0200
committerGitHub <noreply@github.com>2022-07-12 17:00:38 +0200
commita9fab18a9176e72402a4ad4ce73ccc6c2804bd53 (patch)
tree98a1747c2a03915cf7e5c76e8381a39210b1badc
parent2dbd5ed0b4022fc7b22d4fe53924abc7b5a021b5 (diff)
parentc9d406ba04b81c21f187348fe52fa6e1f95ad78c (diff)
Merge pull request #6791 from edolstra/fix-installer
Fix --no-daemon installation
-rw-r--r--scripts/install-nix-from-closure.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/install-nix-from-closure.sh b/scripts/install-nix-from-closure.sh
index d543b4463..cd3cf6670 100644
--- a/scripts/install-nix-from-closure.sh
+++ b/scripts/install-nix-from-closure.sh
@@ -148,7 +148,9 @@ if ! [ -w "$dest" ]; then
exit 1
fi
-mkdir -p "$dest/store"
+# The auto-chroot code in openFromNonUri() checks for the
+# non-existence of /nix/var/nix, so we need to create it here.
+mkdir -p "$dest/store" "$dest/var/nix"
printf "copying Nix to %s..." "${dest}/store" >&2
# Insert a newline if no progress is shown.