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
|
|
|
|
|
2020-08-27 08:51:07 -07:00
|
|
|
. config/functions
|
|
|
|
|
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
|
|
|
|
2024-08-15 11:40:27 -04:00
|
|
|
cp livecd.ubuntu-cpc.rootfs.manifest ${squashfs_f}.manifest
|
|
|
|
cp livecd.ubuntu-cpc.rootfs.filelist ${squashfs_f}.filelist
|
|
|
|
cp livecd.ubuntu-cpc.rootfs.spdx ${squashfs_f}.spdx
|
|
|
|
|
2020-08-27 08:51:07 -07:00
|
|
|
# fstab is omitted from the squashfs
|
2024-08-15 11:40:27 -04:00
|
|
|
grep -v '^/etc/fstab$' livecd.ubuntu-cpc.rootfs.filelist >$squashfs_f.filelist
|
2018-06-07 14:23:18 -07:00
|
|
|
|
2020-08-27 08:51:07 -07:00
|
|
|
create_squashfs $rootfs_dir $squashfs_f
|