Add comment regarding the unset of NIX_STORE_DIR

in build-remote.sh and supplementary-groups.sh
This commit is contained in:
cidkidnix 2023-07-13 14:17:22 -05:00
parent 84c4e6f0ac
commit 1a13757880
2 changed files with 5 additions and 0 deletions

View file

@ -1,6 +1,7 @@
requireSandboxSupport requireSandboxSupport
[[ $busybox =~ busybox ]] || skipTest "no busybox" [[ $busybox =~ busybox ]] || skipTest "no busybox"
# Avoid store dir being inside sandbox build-dir
unset NIX_STORE_DIR unset NIX_STORE_DIR
unset NIX_STATE_DIR unset NIX_STATE_DIR

View file

@ -5,6 +5,10 @@ requireSandboxSupport
if ! command -p -v unshare; then skipTest "Need unshare"; fi if ! command -p -v unshare; then skipTest "Need unshare"; fi
needLocalStore "The test uses --store always so we would just be bypassing the daemon" needLocalStore "The test uses --store always so we would just be bypassing the daemon"
# Avoid store dir being inside sandbox build-dir
unset NIX_STORE_DIR
unset NIX_STATE_DIR
unshare --mount --map-root-user bash <<EOF unshare --mount --map-root-user bash <<EOF
source common.sh source common.sh