Make the store writable before creating /nix/store/.links
This commit is contained in:
parent
0f358ca5b6
commit
d534f137f0
1 changed files with 1 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue