mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 21:13:28 +01:00
check for db.sqlite rather than /nix/store
since we initialize the database last, it's safe to use the database as a sentinel path
This commit is contained in:
1 parent
98894c8598
commit
22cd4b7e49
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -253,7 +253,7 @@ main() {
|
||||
# nix copy uses up a lot of memory and we work around issues with incorrect checksums in our store
|
||||
# that can be caused by using closureInfo in combination with multiple builders and non-deterministic builds.
|
||||
# Therefore if we have a blank store, we copy the store paths and registration from the closureInfo.
|
||||
if [[ ! -d "${mountPoint}/nix/store" ]]; then
|
||||
if [[ ! -f "${mountPoint}/nix/var/nix/db/db.sqlite" ]]; then
|
||||
echo "Copying store paths" >&2
|
||||
mkdir -p "${mountPoint}/nix/store"
|
||||
xargs cp --recursive --target "${mountPoint}/nix/store" < "${closure_info}/store-paths"
|
||||
|
||||
Reference in new issue
Block a user