Skip to content

Commit

Permalink
test-image: SKip privileged tests on NixOS
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <[email protected]>
  • Loading branch information
stgraber committed Oct 20, 2023
1 parent afccaf8 commit 3f1159c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bin/test-image
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,15 @@ EOF
fi
else
incus init "${TEST_IMAGE}" "${TEST_IMAGE}-unpriv"
INSTANCES="${TEST_IMAGE}-unpriv"

if [ "${DIST}" = "nixos" ]; then
# NixOS can't do privileged containers at this point
continue
fi

incus init "${TEST_IMAGE}" "${TEST_IMAGE}-priv" -c security.privileged=true
INSTANCES="${TEST_IMAGE}-priv ${TEST_IMAGE}-unpriv"
INSTANCES="${INSTANCES} ${TEST_IMAGE}-priv"

if [ "${DIST}" = "voidlinux" ]; then
# Workaround weird init system
Expand Down

0 comments on commit 3f1159c

Please sign in to comment.