aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-09-25 16:30:08 -0400
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-09-25 16:30:08 -0400
commitd534f137f0b0bf6b8559731edcfc1e50bd15a427 (patch)
tree0a270315d946c4b4fd65d3d24b3675c66a8dbd05 /src
parent0f358ca5b6f1357e295020c3ed89fe877e809fd9 (diff)
Make the store writable before creating /nix/store/.links
Diffstat (limited to 'src')
-rw-r--r--src/libstore/local-store.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc
index 3fd772f26..6882e9328 100644
--- a/src/libstore/local-store.cc
+++ b/src/libstore/local-store.cc
@@ -212,6 +212,7 @@ LocalStore::LocalStore(bool reserveSpace)
/* Create missing state directories if they don't already exist. */
createDirs(settings.nixStore);
+ makeStoreWritable();
createDirs(linksDir = settings.nixStore + "/.links");
Path profilesDir = settings.nixStateDir + "/profiles";
createDirs(settings.nixStateDir + "/profiles");
@@ -297,8 +298,6 @@ LocalStore::LocalStore(bool reserveSpace)
}
else openDB(false);
-
- makeStoreWritable();
}