|
|
@ -562,8 +562,13 @@ _snap_preseed() {
|
|
|
|
# If snap info does not list a base the default is 'core'
|
|
|
|
# If snap info does not list a base the default is 'core'
|
|
|
|
# which is now an error to use.
|
|
|
|
# which is now an error to use.
|
|
|
|
if [ -z "$core_snap" ]; then
|
|
|
|
if [ -z "$core_snap" ]; then
|
|
|
|
echo "Legacy snap with no base declaration found, refusing to install 'core' snap"
|
|
|
|
if [ -z "$ALLOW_CORE_SNAP" ]; then
|
|
|
|
exit 1
|
|
|
|
echo "Legacy snap with no base declaration found, refusing to install 'core' snap"
|
|
|
|
|
|
|
|
exit 1
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
echo "Legacy snap with no base declaration found, but \$ALLOW_CORE_SNAP set. continue (but FIX YOUR SNAPS!)"
|
|
|
|
|
|
|
|
core_snap=${core_snap:-core}
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
_snap_preseed $CHROOT_ROOT $core_snap stable
|
|
|
|
_snap_preseed $CHROOT_ROOT $core_snap stable
|
|
|
|