mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 12:05:19 -06:00
If the store is read only, return an error early. This is bit of a compromise. Not all operations of the daemon need the store as writable. For example, if hello package is built already `guix build hello` could previously succeed even if store is RO. * nix/libstore/local-store.cc (makeStoreWritable): Rename to ensureStoreWritable. (ensureStoreWritable): As non-root, check that the store is writable and if not, throw an error. (LocalStore::LocalStore): Use it. * nix/libstore/local-store.hh: Rename makeStoreWritable to ensureStoreWritable. Change-Id: I94783ba7e32d57bfa77e37e84b6ac316f95e31e2 Signed-off-by: Rutherther <rutherther@ditigal.xyz> |
||
|---|---|---|
| .. | ||
| libstore | ||
| libutil | ||
| nix-daemon | ||
| .gitignore | ||
| AUTHORS | ||
| COPYING | ||
| local.mk | ||