From 8f7ecf2a1bb002e3b476417efd5846a7fe05d5c0 Mon Sep 17 00:00:00 2001 From: Allen Abraham Date: Wed, 17 Sep 2025 10:38:43 -0400 Subject: [PATCH] fix: Backporting build.info file to Jammy buildd images /etc/cloud/build.info file is currently not present in Jammy buildd images This file is used to get information about the image. Hence we are backporting this file in from Noble --- live-build/auto/build | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/live-build/auto/build b/live-build/auto/build index 2e4292ca..512aee62 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -463,9 +463,16 @@ serial: $BUILDSTAMP EOF fi - if [ "$PROJECT" = "ubuntu-oci" ]; then + if [ "${PROJECT}" = "ubuntu-base" ] || [ "${PROJECT}" = "ubuntu-oci" ]; then if [ -n "$BUILDSTAMP" ]; then - configure_oci chroot "$BUILDSTAMP" + mkdir -p chroot/etc/cloud + cat > chroot/etc/cloud/build.info << EOF +build_name: $PROJECT:${SUBPROJECT:-} +serial: $BUILDSTAMP +EOF + if [ "$PROJECT" = "ubuntu-oci" ]; then + configure_oci chroot "$BUILDSTAMP" + fi else echo "The \$BUILDSTAMP variable is empty" exit 1