jjb: Allow cloud-init status to complete with an error for images
[lttng-ci.git] / pipelines / images / imagebuild.sh
index 8d164ae432c29df9eb2d34ef61fef3388a90bcf2..1b36a0331f5d6290493742957d4089c1fe0f6c2d 100644 (file)
@@ -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?)
This page took 0.024727 seconds and 4 git commands to generate.