mirror of
https://github.com/NixOS/nix
synced 2025-07-08 19:23:54 +02:00
Invoke remount-hook program when necessary.
This commit is contained in:
parent
33ebae75ca
commit
ed14286924
4 changed files with 29 additions and 2 deletions
|
@ -27,8 +27,7 @@ lowerInode=$(stat -c %i "$storeA/$lowerPath")
|
|||
[[ "$upperInode" != "$lowerInode" ]]
|
||||
|
||||
# Now delete file via the overlay store
|
||||
nix-store --store "$storeB" --delete "$upperPath"
|
||||
remountOverlayfs
|
||||
nix-store --store "$storeB&remount-hook=$PWD/remount.sh" --delete "$upperPath"
|
||||
|
||||
# Check there is no longer a file in upper layer
|
||||
expect 1 stat "$storeBTop/${upperPath##/nix/store/}"
|
||||
|
|
2
tests/overlay-local-store/remount.sh
Executable file
2
tests/overlay-local-store/remount.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/env bash
|
||||
mount -o remount "$1"
|
Loading…
Add table
Add a link
Reference in a new issue