jjb: Allow cloud-init status to complete with an error for images
authorKienan Stewart <kstewart@efficios.com>
Wed, 31 Jan 2024 14:07:45 +0000 (09:07 -0500)
committerKienan Stewart <kstewart@efficios.com>
Fri, 2 Feb 2024 14:07:03 +0000 (09:07 -0500)
Change-Id: I7b63d76a9ce61a3cf19b2ab8f75742dde42e51a2
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
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.023078 seconds and 4 git commands to generate.