From 511446639c24245feb16c15c6d66e9a80f2cc243 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Wed, 31 Jan 2024 09:07:45 -0500 Subject: [PATCH] jjb: Allow cloud-init status to complete with an error for images Change-Id: I7b63d76a9ce61a3cf19b2ab8f75742dde42e51a2 Signed-off-by: Kienan Stewart --- pipelines/images/imagebuild.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pipelines/images/imagebuild.sh b/pipelines/images/imagebuild.sh index 8d164ae..1b36a03 100644 --- a/pipelines/images/imagebuild.sh +++ b/pipelines/images/imagebuild.sh @@ -132,7 +132,10 @@ done # Wait for cloud-init to finish if [[ "${VARIANT}" == "cloud" ]] ; then - lxc exec "${INSTANCE_NAME}" -- cloud-init status -w + # It's possible for cloud-init to fail, but to still be able to continue. + # Eg., a profile asks for netplan.io on a system that doesn't have that + # package available. + lxc exec "${INSTANCE_NAME}" -- cloud-init status -w || true fi # Wait for instance to have an ip address (@TODO: is there a better approach?) -- 2.34.1