mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-10 04:37:29 +00:00
* ubuntu-cpc: Generate the root image contents once, and use it for both the -root.tar.xz and the .squashfs. * ubuntu-cpc: Generate -root.tar.xz with --xattrs.
30 lines
548 B
Bash
30 lines
548 B
Bash
#!/bin/bash -ex
|
|
# vi: ts=4 noexpandtab
|
|
#
|
|
# Generate a squashfs root and manifest
|
|
|
|
case $IMAGE_TARGETS in
|
|
""|*squashfs*)
|
|
;;
|
|
*)
|
|
echo "Skipping squashfs build"
|
|
exit 0
|
|
;;
|
|
esac
|
|
|
|
if [ -n "$SUBARCH" ]; then
|
|
echo "Skipping rootfs build for subarch flavor build"
|
|
exit 0
|
|
fi
|
|
|
|
# This is the directory created by 031-0-create-root-dir.binary
|
|
rootfs_dir=rootfs.dir
|
|
|
|
squashfs_f="$PWD/livecd.ubuntu-cpc.squashfs"
|
|
|
|
cp $rootfs_dir.manifest $squashfs_f.manifest
|
|
|
|
(cd $rootfs_dir &&
|
|
mksquashfs . $squashfs_f \
|
|
-no-progress -xattrs -comp xz )
|