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

(cherry picked from commit 6e6ab16bf2)
uc20-no-fixed-size
Dimitri John Ledkov 4 years ago
parent 39ebdf6902
commit 56a7169ebe
No known key found for this signature in database
GPG Key ID: 9B8EC849D5EF70ED

@ -21,10 +21,9 @@ if [ -n "$SUBARCH" ]; then
exit 0
fi
. config/binary
. config/functions
. config/common
# somehow i don't have LB_DISTRIBUTION set ?!
. config/bootstrap
FILESYSTEM_ROOT=binary/boot/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"
# 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"
(cd "$OVERLAY_ROOT/" &&

Loading…
Cancel
Save