Reverts the revert of cloud-init v23.4.1 and adds a patch backport to gracefully handle the new status exit code behavior which caused a regression in our extended testing apparatus, prompting the initial revert.
From https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/2048522
cloud-init status introduced a new exit code of 2 with the meaning of recoverable errors / warnings.
Without this fix, status exited with 2 in cases where previously did it with 0, potentially breaking consumers (scripts or other programs) of cloud-init status.
The fix is to include a quilt patch retaining the exit code of 0 for recoverable errors / warnings for stable releases.
Fixes: 1a57d91 ("Revert "fix: upgrade cloud-init to v23.4.1"")
Signed-off-by: Chris Co chrco@microsoft.com