From bc5dbaaca51486e22e3316c87db7c869db89bc97 Mon Sep 17 00:00:00 2001 From: Ben Howard Date: Thu, 12 Nov 2015 14:48:01 -0700 Subject: [PATCH] ubuntu-cpc: generate squashfs based on the rootfs tarball --- .../ubuntu-cpc/hooks/032-root-squashfs.binary | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 live-build/ubuntu-cpc/hooks/032-root-squashfs.binary diff --git a/live-build/ubuntu-cpc/hooks/032-root-squashfs.binary b/live-build/ubuntu-cpc/hooks/032-root-squashfs.binary new file mode 100755 index 00000000..37d612f9 --- /dev/null +++ b/live-build/ubuntu-cpc/hooks/032-root-squashfs.binary @@ -0,0 +1,15 @@ +#!/bin/bash -eux +# vi: ts=4 noexpandtab +# +# Generate a squashfs root and manifest + +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 )