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:
parent
cc6f8aa91a
commit
11c493f8fa
3 changed files with 23 additions and 2 deletions
|
@ -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/}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue