1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-09 03:43:54 +02:00

Avoid creating whiteout for duplicate store paths.

This commit is contained in:
Ben Radford 2023-07-26 13:21:38 +01:00 committed by Ben Radford
parent cc6f8aa91a
commit 11c493f8fa
3 changed files with 23 additions and 2 deletions

View file

@ -28,6 +28,7 @@ lowerInode=$(stat -c %i "$storeA/$lowerPath")
# Now delete file via the overlay store
nix-store --store "$storeB" --delete "$upperPath"
remountOverlayfs
# Check there is no longer a file in upper layer
expect 1 stat "$storeBTop/${upperPath##/nix/store/}"