livecd-rootfs/live-build/ubuntu-cpc/hooks/032-root-squashfs.binary
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

20 lines
455 B
Bash
Executable File

#!/bin/bash -eux
# vi: ts=4 noexpandtab
#
# Generate a squashfs root and manifest
if [ -n "$SUBARCH" ]; then
exit 0
fi
apt-get -qqy install squashfs-tools
squashfs_f="${PWD}/livecd.ubuntu-cpc.squashfs"
squashfs_f_manifest="${squashfs_f}.manifest"
dpkg-query --admindir=binary/boot/filesystem.dir/var/lib/dpkg -W > ${squashfs_f_manifest}
(cd "binary/boot/filesystem.dir/" &&
mksquashfs . ${squashfs_f} \
-no-progress -xattrs -comp xz )