mirror of
https://github.com/NixOS/nix.git
synced 2024-11-27 17:22:29 +00:00
Make the store writable before creating /nix/store/.links
This commit is contained in:
parent
0f358ca5b6
commit
d534f137f0
@ -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 New Issue
Block a user