Skip to content

Commit d534f13

Browse files
committed
Make the store writable before creating /nix/store/.links
1 parent 0f358ca commit d534f13

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/libstore/local-store.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ LocalStore::LocalStore(bool reserveSpace)
212212

213213
/* Create missing state directories if they don't already exist. */
214214
createDirs(settings.nixStore);
215+
makeStoreWritable();
215216
createDirs(linksDir = settings.nixStore + "/.links");
216217
Path profilesDir = settings.nixStateDir + "/profiles";
217218
createDirs(settings.nixStateDir + "/profiles");
@@ -297,8 +298,6 @@ LocalStore::LocalStore(bool reserveSpace)
297298
}
298299

299300
else openDB(false);
300-
301-
makeStoreWritable();
302301
}
303302

304303

0 commit comments

Comments
 (0)