2018-06-07 14:23:18 -07:00
|
|
|
#!/bin/bash -ex
|
|
|
|
# vi: ts=4 noexpandtab
|
|
|
|
#
|
|
|
|
# Generate a squashfs root and manifest
|
|
|
|
|
|
|
|
if [ -n "$SUBARCH" ]; then
|
|
|
|
echo "Skipping rootfs build for subarch flavor build"
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2019-05-02 15:48:46 -05:00
|
|
|
# This is the directory created by create-root-dir.binary
|
2018-06-07 14:23:18 -07:00
|
|
|
rootfs_dir=rootfs.dir
|
|
|
|
|
2018-06-07 16:24:29 -07:00
|
|
|
squashfs_f="$PWD/livecd.ubuntu-cpc.squashfs"
|
2018-06-07 14:23:18 -07:00
|
|
|
|
2018-06-07 16:24:29 -07:00
|
|
|
cp $rootfs_dir.manifest $squashfs_f.manifest
|
2018-06-07 14:23:18 -07:00
|
|
|
|
2018-06-07 16:24:29 -07:00
|
|
|
(cd $rootfs_dir &&
|
|
|
|
mksquashfs . $squashfs_f \
|
2018-06-07 14:23:18 -07:00
|
|
|
-no-progress -xattrs -comp xz )
|