Skip to content

Commit

Permalink
bin/test-image: check if cloud-init cmd is available on non-cloud var…
Browse files Browse the repository at this point in the history
…iants (#335)

This is mainly to enable the cloud-init testing of desktop images for
which we only build a single variant called `desktop`.
  • Loading branch information
simondeziel authored Oct 28, 2024
2 parents 6466159 + 64a22aa commit 9d167f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/test-image
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ if [ "${TYPE}" = "vm" ]; then
INSTANCES="${TEST_IMAGE}"

# Cloud-init testing.
if [ "${VARIANT}" = "cloud" ]; then
if [ "${VARIANT}" = "cloud" ] || lxc exec "${name}" -- sh -c "command -v cloud-init"; then
lxc config set "${TEST_IMAGE}" user.user-data "$(cat << EOF
#cloud-config
write_files:
Expand Down

0 comments on commit 9d167f4

Please sign in to comment.