From 8560f8cdbc65ca5f85f3430e06c1fe95858320b3 Mon Sep 17 00:00:00 2001 From: Adam Stephens Date: Thu, 14 Dec 2023 17:29:15 -0500 Subject: [PATCH] nixos: add back privileged contaienr guard for 23.11 Signed-off-by: Adam Stephens --- bin/test-image | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/test-image b/bin/test-image index 8b50a67f..4fde2b7e 100755 --- a/bin/test-image +++ b/bin/test-image @@ -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}"