mirror of
https://github.com/NixOS/nix
synced 2025-07-07 10:11:47 +02:00
functional-tests: skip tests if the kernel restricts unprivileged user namespaces
Update tests/functional/common/functions.sh
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
Co-authored-by: bryango <bryango@users.noreply.github.com>
(cherry picked from commit da7f7ba810
)
This commit is contained in:
parent
e0c8b0fc4f
commit
ada649ad7f
12 changed files with 22 additions and 6 deletions
|
@ -19,7 +19,7 @@ TODO_NixOS
|
|||
|
||||
for i in "${storesBad[@]}"; do
|
||||
echo $i
|
||||
unshare --mount --map-root-user bash <<EOF
|
||||
execUnshare <<EOF
|
||||
source common.sh
|
||||
setupStoreDirs
|
||||
mountOverlayfs
|
||||
|
|
|
@ -93,10 +93,6 @@ initLowerStore () {
|
|||
pathInLowerStore=$(nix-store --store "$storeA" --realise $drvPath)
|
||||
}
|
||||
|
||||
execUnshare () {
|
||||
exec unshare --mount --map-root-user "$SHELL" "$@"
|
||||
}
|
||||
|
||||
addTextToStore() {
|
||||
storeDir=$1; shift
|
||||
filename=$1; shift
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue