Skip to content

Commit

Permalink
nixos: add back privileged contaienr guard for 23.11
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Stephens <[email protected]>
  • Loading branch information
adamcstephens committed Dec 14, 2023
1 parent bf9779a commit 8560f8c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/test-image
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ EOF
fi
else
for PRIV in "priv" "unpriv"; do
if [ "${PRIV}" = "priv" ] && [ "${DIST}" = "nixos" ] && [ "${RELEASE}" = "23.11" ]; then
# NixOS 23.11 will never support privileged containers, but future versions do
continue
fi

incus init "${TEST_IMAGE}" "${TEST_IMAGE}-${PRIV}"
INSTANCES="${INSTANCES} ${TEST_IMAGE}-${PRIV}"

Expand Down

0 comments on commit 8560f8c

Please sign in to comment.