nix-super/tests/overlay-local-store.sh
2023-05-08 16:01:36 -04:00

10 lines
388 B
Bash

source common.sh
requireSandboxSupport
[[ $busybox =~ busybox ]] || skipTest "no busybox"
if [[ $(uname) != Linux ]]; then skipTest "Need Linux for overlayfs"; fi
needLocalStore "The test uses --store always so we would just be bypassing the daemon"
echo "drop-supplementary-groups = false" >> "$NIX_CONF_DIR"/nix.conf
exec unshare --mount --map-root-user overlay-local-store/inner.sh