Merge branch 'empty-fstab-in-lxd' of git+ssh://git.launchpad.net/~rbalint/livecd-rootfs into ubuntu/master

raspi-desktop-1
Dimitri John Ledkov 5 years ago
commit 90602e00de

@ -35,6 +35,7 @@ mkdir -p config
cp -af /usr/share/livecd-rootfs/live-build/functions config/functions cp -af /usr/share/livecd-rootfs/live-build/functions config/functions
cp -af /usr/share/livecd-rootfs/live-build/lb_*_layered config/ cp -af /usr/share/livecd-rootfs/live-build/lb_*_layered config/
cp -af /usr/share/livecd-rootfs/live-build/snap-seed-parse.py config/snap-seed-parse cp -af /usr/share/livecd-rootfs/live-build/snap-seed-parse.py config/snap-seed-parse
cp -af /usr/share/livecd-rootfs/live-build/squashfs-exclude-files config/
mkdir -p config/package-lists mkdir -p config/package-lists

@ -277,6 +277,17 @@ create_vmdk() {
rm -rf ${scratch_d} rm -rf ${scratch_d}
} }
create_squashfs() {
local config_dir rootfs_dir squashfs_file
rootfs_dir="$1"
squashfs_file="$2"
config_dir="$PWD/config"
(cd $rootfs_dir &&
mksquashfs . $squashfs_file -no-progress -xattrs -comp xz \
-ef "$config_dir/squashfs-exclude-files")
}
create_derivative() { create_derivative() {
# arg1 is the disk type # arg1 is the disk type
# arg2 is the new name # arg2 is the new name

@ -8,14 +8,15 @@ if [ -n "$SUBARCH" ]; then
exit 0 exit 0
fi fi
. config/functions
# This is the directory created by create-root-dir.binary # This is the directory created by create-root-dir.binary
rootfs_dir=rootfs.dir rootfs_dir=rootfs.dir
squashfs_f="$PWD/livecd.ubuntu-cpc.squashfs" squashfs_f="$PWD/livecd.ubuntu-cpc.squashfs"
cp $rootfs_dir.manifest $squashfs_f.manifest cp $rootfs_dir.manifest $squashfs_f.manifest
cp $rootfs_dir.filelist $squashfs_f.filelist # fstab is omitted from the squashfs
grep -v '^/etc/fstab$' $rootfs_dir.filelist >$squashfs_f.filelist
(cd $rootfs_dir && create_squashfs $rootfs_dir $squashfs_f
mksquashfs . $squashfs_f \
-no-progress -xattrs -comp xz )

@ -30,6 +30,4 @@ squashfs_f_manifest="${squashfs_f}.manifest"
create_manifest "binary/boot/squashfs.dir" "${squashfs_f_manifest}" create_manifest "binary/boot/squashfs.dir" "${squashfs_f_manifest}"
(cd "binary/boot/squashfs.dir/" && create_squashfs "binary/boot/squashfs.dir/" ${squashfs_f}
mksquashfs . ${squashfs_f} \
-no-progress -xattrs -comp xz )

@ -86,6 +86,4 @@ teardown_mountpoint "$INSTALLER_ROOT"
squashfs_f="${PWD}/livecd.${PROJECT}.installer.squashfs" squashfs_f="${PWD}/livecd.${PROJECT}.installer.squashfs"
(cd "$OVERLAY_ROOT/" && create_squashfs "$OVERLAY_ROOT/" ${squashfs_f}
mksquashfs . ${squashfs_f} \
-no-progress -xattrs -comp xz )

Loading…
Cancel
Save