diff --git a/debian/changelog b/debian/changelog index 474e24b4..6d3dfe17 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +livecd-rootfs (2.525.44) UNRELEASED; urgency=medium + + * Add support for building uc18 appliance images. + + -- Ɓukasz 'sil2100' Zemczak Thu, 07 May 2020 18:38:54 +0200 + livecd-rootfs (2.525.43) bionic; urgency=medium [ David Krauser ] diff --git a/live-build/auto/config b/live-build/auto/config index 8123e07e..dcc99982 100755 --- a/live-build/auto/config +++ b/live-build/auto/config @@ -186,7 +186,7 @@ case $IMAGEFORMAT in MODEL=dragonboard ;; armhf+raspi3) MODEL=pi ;; - arm64+raspi3) + arm64+raspi3*) MODEL=pi-arm64 ;; armhf+imx6) MODEL=nitrogen6x ;; @@ -206,6 +206,7 @@ case $IMAGEFORMAT in if [ $PROJECT = "ubuntu-core" ]; then # snap-based core images + BRAND_ID="canonical" case $MODEL in pc-amd64|pc-i386) [ -z "${SUBARCH:-}" ] \ @@ -218,7 +219,19 @@ case $IMAGEFORMAT in ;; *) # Ubuntu Core 18 - MODEL="ubuntu-core-18-${MODEL#pc-}" ;; + case $SUBARCH in + # Handle appliance images + *plexmediaserver|*adguard-home|*nextcloud|*openhab|*frr) + BRAND_ID="ubuntu" + APPLIANCE="${SUBARCH#raspi3-}" + MODEL="${APPLIANCE}-ubuntu-core-18-${MODEL#pc-}" + ;; + # Default generic images + *) + MODEL="ubuntu-core-18-${MODEL#pc-}" + ;; + esac + ;; esac case "$ARCH+${SUBARCH:-}" in @@ -233,7 +246,7 @@ case $IMAGEFORMAT in echo "IMAGEFORMAT=$IMAGEFORMAT" >> config/common echo "UBUNTU_IMAGE_ARGS=\"$UBUNTU_IMAGE_ARGS\"" >> config/common # Store model assertion in top dir to get it picked up later as a build artifact - env SNAPPY_STORE_NO_CDN=1 snap known --remote model series=16 model="$MODEL" brand-id=canonical > "$PREFIX".model-assertion + env SNAPPY_STORE_NO_CDN=1 snap known --remote model series=16 model="$MODEL" brand-id="$BRAND_ID" > "$PREFIX".model-assertion echo "Configured ubuntu-image for the following model assertion:" cat "$PREFIX".model-assertion echo "----------------------------------------------------------"