* Make sure that /nix/var/nix/channel-cache exists.

svn path=/nixos/trunk/; revision=9854
This commit is contained in:
Eelco Dolstra 2007-12-04 12:31:00 +00:00
parent aeced64d0e
commit d2377fae72

View File

@ -33,7 +33,8 @@ if test -z "$NIXOS_CONFIG"; then NIXOS_CONFIG=/etc/nixos/configuration.nix; fi
if test -z "$NIXOS_NO_PULL"; then if test -z "$NIXOS_NO_PULL"; then
manifests=$(nix-instantiate --eval-only --xml --strict $NIXOS -A manifests \ manifests=$(nix-instantiate --eval-only --xml --strict $NIXOS -A manifests \
| grep '<string' | sed 's^.*"\(.*\)".*^\1^g') | grep '<string' | sed 's^.*"\(.*\)".*^\1^g')
mkdir -p /nix/var/nix/channel-cache
for i in $manifests; do for i in $manifests; do
NIX_DOWNLOAD_CACHE=/nix/var/nix/channel-cache nix-pull $i || true NIX_DOWNLOAD_CACHE=/nix/var/nix/channel-cache nix-pull $i || true
done done