live-server: remove duplicate snaps, due to overlayfs vs snap-preseed.

raspi-desktop-1
Dimitri John Ledkov 4 years ago
parent 1ca11c9795
commit 6e6ab16bf2
No known key found for this signature in database
GPG Key ID: 9B8EC849D5EF70ED

@ -21,10 +21,9 @@ if [ -n "$SUBARCH" ]; then
exit 0 exit 0
fi fi
. config/binary
. config/functions . config/functions
. config/common . config/common
# somehow i don't have LB_DISTRIBUTION set ?!
. config/bootstrap
FILESYSTEM_ROOT=binary/boot/squashfs.dir FILESYSTEM_ROOT=binary/boot/squashfs.dir
INSTALLER_ROOT=binary/boot/installer.squashfs.dir INSTALLER_ROOT=binary/boot/installer.squashfs.dir
@ -84,6 +83,12 @@ sed -i -e'N;/name: lxd/,+2d' $INSTALLER_ROOT/var/lib/snapd/seed/seed.yaml
teardown_mountpoint "$INSTALLER_ROOT" teardown_mountpoint "$INSTALLER_ROOT"
# Drop core/lxd/snapd that got copied up from base layer, due to
# snap-preseed tool doing --reset & speedup
find $OVERLAY_ROOT/var/lib/snapd/ -name 'core*.snap' -delete
find $OVERLAY_ROOT/var/lib/snapd/ -name 'snapd_*.snap' -delete
find $OVERLAY_ROOT/var/lib/snapd/ -name 'lxd_*.snap' -delete
squashfs_f="${PWD}/livecd.${PROJECT}.installer.squashfs" squashfs_f="${PWD}/livecd.${PROJECT}.installer.squashfs"
create_squashfs "$OVERLAY_ROOT/" ${squashfs_f} create_squashfs "$OVERLAY_ROOT/" ${squashfs_f}

Loading…
Cancel
Save