Add proper IMAGAFORMAT for raspi3 classic builds, output the images with the expected naming.

sil2100/raspi-wpasupplicant
Łukasz 'sil2100' Zemczak 6 years ago
parent 75fa8802ec
commit e60bcbaecd

8
debian/changelog vendored

@ -1,3 +1,11 @@
livecd-rootfs (2.554) UNRELEASED; urgency=medium
* Default to IMAGEFORMAT=ubuntu-image for raspi3 ubuntu-cpc builds.
* Rename the resulting raspi3 image file to *.disk1.img.xz to be compatible
with how raspi2 images are provided.
-- Łukasz 'sil2100' Zemczak <lukasz.zemczak@ubuntu.com> Wed, 09 Jan 2019 10:34:59 +0100
livecd-rootfs (2.553) disco; urgency=medium livecd-rootfs (2.553) disco; urgency=medium
* Add a LXD image to builds for the buildd subproject. * Add a LXD image to builds for the buildd subproject.

@ -43,8 +43,11 @@ if [ "${IMAGEFORMAT:-}" = "ubuntu-image" ]; then
# XXX: currently we only have one image generated, but really # XXX: currently we only have one image generated, but really
# we should be supporting more than one for models that # we should be supporting more than one for models that
# define those. # define those.
mv output/*.img "$PREFIX".img # Also, we use the .disk1.img suffix so that the resulting
xz -0 -T4 "$PREFIX".img # image path is compatible with how raspi2 images are consumed
# by cdimage.
mv output/*.img "$PREFIX".disk1.img
xz -0 -T4 "$PREFIX".disk1.img
mv output/filesystem.manifest "$PREFIX".manifest mv output/filesystem.manifest "$PREFIX".manifest
fi fi

@ -109,7 +109,12 @@ add_binary_hook ()
if [ -z "${IMAGEFORMAT:-}" ]; then if [ -z "${IMAGEFORMAT:-}" ]; then
case $PROJECT:${SUBPROJECT:-} in case $PROJECT:${SUBPROJECT:-} in
ubuntu-cpc:*) ubuntu-cpc:*)
if [ "$SUBARCH" = "raspi3" ]; then
# For now only raspi3, but others are soon to follow
IMAGEFORMAT=ubuntu-image
else
IMAGEFORMAT=ext4 IMAGEFORMAT=ext4
fi
;; ;;
ubuntu-server:live) ubuntu-server:live)
IMAGEFORMAT=plain IMAGEFORMAT=plain

Loading…
Cancel
Save