Make sure we call the build "minimal" within the cloud build info,

when building a minimized image.
This commit is contained in:
Steve Langasek 2018-03-27 12:12:26 -07:00
commit 4bb0414a5d
2 changed files with 14 additions and 1 deletions

8
debian/changelog vendored
View File

@ -1,3 +1,11 @@
livecd-rootfs (2.516) UNRELEASED; urgency=medium
[ Chris Glass ]
* Make sure we call the build "minimal" within the cloud build info,
when building a minimized image.
-- Steve Langasek <steve.langasek@ubuntu.com> Tue, 27 Mar 2018 12:11:36 -0700
livecd-rootfs (2.515) bionic; urgency=medium
* Set the default locale to C.UTF-8 in all server and cloud images.

View File

@ -419,8 +419,13 @@ deb file:/var/lib/preinstalled-pool/ $LB_DISTRIBUTION $LB_PARENT_ARCHIVE_AREAS
fi
fi
if [ "$PROJECT" = "ubuntu-cpc" ]; then
if [ "${SUBPROJECT:-}" = minimized ]; then
BUILD_NAME=minimal
else
BUILD_NAME=server
fi
cat > chroot/etc/cloud/build.info << EOF
build_name: server
build_name: $BUILD_NAME
serial: $BUILDSTAMP
EOF
fi