From 78a4a8b25efaa35567da39c87a9a19c80ccb4d1f Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Thu, 20 Jun 2024 11:52:28 -0400 Subject: [PATCH] bin/test-image: don't hardcode secureboot=false Signed-off-by: Simon Deziel --- bin/test-image | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/bin/test-image b/bin/test-image index 417768866..09456c2c4 100755 --- a/bin/test-image +++ b/bin/test-image @@ -75,11 +75,9 @@ if [ "${TYPE}" = "vm" ]; then -c limits.memory=4GiB # Some distros don't support secure boot. - case "${DISTRO}" in - alpine|archlinux|gentoo|nixos|openeuler) - lxc config set "${TEST_IMAGE}" security.secureboot=false - ;; - esac + if [ "$(lxc image get-property "${TEST_IMAGE}" requirements.secureboot 2>/dev/null)" = "false" ]; then + lxc config set "${TEST_IMAGE}" security.secureboot=false + fi INSTANCES="${TEST_IMAGE}"