If a subarch is specified for a cloud image build, don't build rootfs

artifacts; these should come from the 'generic' build.
ubuntu/yakkety
Steve Langasek 9 years ago
parent 691a0ca08f
commit cb58e88614

2
debian/changelog vendored

@ -11,6 +11,8 @@ livecd-rootfs (2.376) UNRELEASED; urgency=medium
all flavors and archs, but at the moment it's only needed on armhf+raspi2 all flavors and archs, but at the moment it's only needed on armhf+raspi2
to work around the raspberrypi2-firmware postinst calling sync, which is to work around the raspberrypi2-firmware postinst calling sync, which is
actually warranted in the normal case. actually warranted in the normal case.
* If a subarch is specified for a cloud image build, don't build rootfs
artifacts; these should come from the 'generic' build.
-- Łukasz 'sil2100' Zemczak <lukasz.zemczak@ubuntu.com> Thu, 04 Feb 2016 17:31:18 +0100 -- Łukasz 'sil2100' Zemczak <lukasz.zemczak@ubuntu.com> Thu, 04 Feb 2016 17:31:18 +0100

@ -1,4 +1,10 @@
#!/bin/bash -ex #!/bin/bash -ex
if [ -n "$SUBARCH" ]; then
echo "Skipping rootfs build for subarch flavor build"
exit 0
fi
mkdir binary/boot/filesystem.dir mkdir binary/boot/filesystem.dir
cp -a chroot/* binary/boot/filesystem.dir cp -a chroot/* binary/boot/filesystem.dir

@ -3,6 +3,10 @@
# #
# Generate the rootfs.tar.gz and manifest # Generate the rootfs.tar.gz and manifest
if [ -n "$SUBARCH" ]; then
exit 0
fi
dpkg-query --admindir=binary/boot/filesystem.dir/var/lib/dpkg -W > livecd.ubuntu-cpc.rootfs.manifest dpkg-query --admindir=binary/boot/filesystem.dir/var/lib/dpkg -W > livecd.ubuntu-cpc.rootfs.manifest
(cd "binary/boot/filesystem.dir/" && tar -c *) | \ (cd "binary/boot/filesystem.dir/" && tar -c *) | \

@ -3,6 +3,10 @@
# #
# Generate a squashfs root and manifest # Generate a squashfs root and manifest
if [ -n "$SUBARCH" ]; then
exit 0
fi
apt-get -qqy install squashfs-tools apt-get -qqy install squashfs-tools
squashfs_f="${PWD}/livecd.ubuntu-cpc.squashfs" squashfs_f="${PWD}/livecd.ubuntu-cpc.squashfs"

Loading…
Cancel
Save