From d534f137f0b0bf6b8559731edcfc1e50bd15a427 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 25 Sep 2012 16:30:08 -0400 Subject: Make the store writable before creating /nix/store/.links --- src/libstore/local-store.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index 3fd772f26fb1..6882e9328b6e 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(); } -- cgit 1.4.1