diff options
Diffstat (limited to 'src/libstore/store-api.cc')
-rw-r--r-- | src/libstore/store-api.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc index 8c9940c86..f696e4c1f 100644 --- a/src/libstore/store-api.cc +++ b/src/libstore/store-api.cc @@ -1444,9 +1444,10 @@ std::shared_ptr<Store> openFromNonUri(const std::string & uri, const Store::Para warn("'%s' does not exist, so Nix will use '%s' as a chroot store", stateDir, chrootStore); } else debug("'%s' does not exist, so Nix will use '%s' as a chroot store", stateDir, chrootStore); - Store::Params params2; - params2["root"] = chrootStore; - return LocalStore::makeLocalStore(params); + Store::Params chrootStoreParams; + chrootStoreParams["root"] = chrootStore; + // FIXME? this ignores *all* store parameters passed to this function? + return LocalStore::makeLocalStore(chrootStoreParams); } #endif else |