Do not unconditionally install the core snap

Seeing any snap via snap_preseed will evaluate the base for each snap
and seed the appropriate base.  There should be no reason to explicitly
seed the 'core' snap and with snaps moving to 'core18' this will add
'core' without need.
sil2100/appliance-qcow2
Robert C Jennings 5 years ago committed by Michael Hudson-Doyle
parent 622adfc4eb
commit e4952519b3

@ -555,12 +555,6 @@ snap_prepare() {
local snaps_dir="$seed_dir/snaps" local snaps_dir="$seed_dir/snaps"
snap_prepare_assertions "$CHROOT_ROOT" "$CUSTOM_BRAND_MODEL" snap_prepare_assertions "$CHROOT_ROOT" "$CUSTOM_BRAND_MODEL"
# ubuntu-cpc:minimized has its own special snap handling
if [ "$PROJECT:${SUBPROJECT:-}" != ubuntu-cpc:minimized ]; then
# Download the core snap
_snap_preseed "$CHROOT_ROOT" core stable
fi
} }
snap_preseed() { snap_preseed() {

Loading…
Cancel
Save