fix: Temporarily pin snapd preseeding to snap channel stable/2.57.x

There is a regression in snapd 2.58 with a fix being worked on @
https://github.com/snapcore/snapd/pull/12483. The regression was
that it was no longer possible to preseed snaps during cloud
image builds. The temporary workaround is to preseed snapd
from a downgraded channel "stable/2.57.x". To do this temporarily
we will carry a patch on CPC's fork of livecd-rootfs on all suites.

Once the fix to snapd snap is rolled out with a new 2.58.1
release then the "stable/2.57.x" will be removed and
all users with snapd from channel "stable/2.57.x" will
fall back to "stable" channel and be upgraded to 2.58.1.
This commit is contained in:
Philip Roche 2023-01-13 09:40:12 +00:00
parent c6d4c73dfe
commit 18af71ff97

View File

@ -508,7 +508,17 @@ _snap_post_process() {
# If the 'core' snap is not present, assume we are coreXX-only and
# install the snapd snap.
if [ ! -f ${snaps_dir}/core_[0-9]*.snap ]; then
_snap_preseed $CHROOT_ROOT snapd stable
# There is a regression in snapd 2.58 with a fix being worked on @
# https://github.com/snapcore/snapd/pull/12483. The regression was
# that it was no longer possible to preseed snaps during cloud
# image builds. The temporary workaround is to preseed snapd
# from a downgraded channel "stable/2.57.x". To do this temporarily
# we will carry a patch on CPC's fork of livecd-rootfs on all suites.
# Once the fix to snapd snap is rolled out with a new 2.58.1
# release then the "stable/2.57.x" will be removed and
# all users with snapd from channel "stable/2.57.x" will
# fall back to "stable" channel and be upgraded to 2.58.1.
_snap_preseed $CHROOT_ROOT snapd "stable/2.57.x"
fi
;;
core)