Skip to content

Commit

Permalink
Merge pull request #217 from MusicDin/fix/secureboot
Browse files Browse the repository at this point in the history
bin/test-image: Disable secureboot for specific images
  • Loading branch information
tomponline authored Jun 28, 2024
2 parents 6658e2b + cc22d14 commit cfbd76c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bin/test-image
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,11 @@ if [ "${TYPE}" = "vm" ]; then
-c limits.memory=4GiB

# Some distros don't support secure boot.
if [ "$(lxc image get-property "${TEST_IMAGE}" requirements.secureboot 2>/dev/null)" = "false" ]; then
lxc config set "${TEST_IMAGE}" security.secureboot=false
fi
case "${DISTRO}" in
alpine|archlinux|gentoo|nixos|openeuler)
lxc config set "${TEST_IMAGE}" security.secureboot=false
;;
esac

INSTANCES="${TEST_IMAGE}"

Expand Down

0 comments on commit cfbd76c

Please sign in to comment.