mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-12-01 09:14:06 +00:00
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
This commit is contained in:
parent
3bae190dea
commit
8f7ecf2a1b
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user