mirror of
https://github.com/NixOS/nix
synced 2025-07-09 16:13:54 +02:00
Merge remote-tracking branch 'upstream/master' into overlayfs-store
This commit is contained in:
commit
5c1cb0b696
941 changed files with 10981 additions and 4439 deletions
31
tests/functional/local-overlay-store/add-lower-inner.sh
Executable file
31
tests/functional/local-overlay-store/add-lower-inner.sh
Executable file
|
@ -0,0 +1,31 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
set -x
|
||||
|
||||
source common.sh
|
||||
|
||||
# Avoid store dir being inside sandbox build-dir
|
||||
unset NIX_STORE_DIR
|
||||
unset NIX_STATE_DIR
|
||||
|
||||
storeDirs
|
||||
|
||||
initLowerStore
|
||||
|
||||
mountOverlayfs
|
||||
|
||||
# Add something to the overlay store
|
||||
overlayPath=$(addTextToStore "$storeB" "overlay-file" "Add to overlay store")
|
||||
stat "$storeBRoot/$overlayPath"
|
||||
|
||||
# Now add something to the lower store
|
||||
lowerPath=$(addTextToStore "$storeA" "lower-file" "Add to lower store")
|
||||
stat "$storeVolume/store-a/$lowerPath"
|
||||
|
||||
# Remount overlayfs to ensure synchronization
|
||||
remountOverlayfs
|
||||
|
||||
# Path should be accessible via overlay store
|
||||
stat "$storeBRoot/$lowerPath"
|
Loading…
Add table
Add a link
Reference in a new issue