Skip to content

Commit

Permalink
Merge pull request #205 from simondeziel/requirements-secureboot
Browse files Browse the repository at this point in the history
bin/test-image: don't hardcode secureboot=false
  • Loading branch information
tomponline authored Jun 25, 2024
2 parents c907127 + 78a4a8b commit e4215ac
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions bin/test-image
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down

0 comments on commit e4215ac

Please sign in to comment.