Steve Langasek cb58e88614 If a subarch is specified for a cloud image build, don't build rootfs
artifacts; these should come from the 'generic' build.
2016-02-05 11:08:26 -08:00

14 lines
319 B
Bash
Executable File

#!/bin/bash -ex
# vi: ts=4 noexpandtab
#
# 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
(cd "binary/boot/filesystem.dir/" && tar -c *) | \
xz > "livecd.ubuntu-cpc.rootfs.tar.xz"