forked from lix-project/lix
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. */
|
/* Create missing state directories if they don't already exist. */
|
||||||
createDirs(settings.nixStore);
|
createDirs(settings.nixStore);
|
||||||
|
makeStoreWritable();
|
||||||
createDirs(linksDir = settings.nixStore + "/.links");
|
createDirs(linksDir = settings.nixStore + "/.links");
|
||||||
Path profilesDir = settings.nixStateDir + "/profiles";
|
Path profilesDir = settings.nixStateDir + "/profiles";
|
||||||
createDirs(settings.nixStateDir + "/profiles");
|
createDirs(settings.nixStateDir + "/profiles");
|
||||||
|
@ -297,8 +298,6 @@ LocalStore::LocalStore(bool reserveSpace)
|
||||||
}
|
}
|
||||||
|
|
||||||
else openDB(false);
|
else openDB(false);
|
||||||
|
|
||||||
makeStoreWritable();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue