From 0b2239c0695912a32c5a4122a56889ead15fb9e6 Mon Sep 17 00:00:00 2001 From: Christopher Glass Date: Thu, 22 Mar 2018 10:24:44 +0100 Subject: [PATCH] Parametrize BUILD_NAME in /etc/cloud/build.info to make it "minimal-aware". --- live-build/auto/build | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/live-build/auto/build b/live-build/auto/build index e28e6ca7..b553c74b 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -409,8 +409,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