Handle seeded lxd snap with channel name for ubuntu-cpc:minimized (LP: #1889470)

The seed now specifies the lxd snap in focal as
'lxd=4.0/stable/ubuntu-20.04' which doesn't match the expectations of
the code with looks for lxd as the only snap in the seed for minimized
images.  This patch updates the pattern to accept 'lxd' or 'lxd=*'.
uc20-no-fixed-size
Robert C Jennings 5 years ago
parent e9f4e97155
commit 136562b837
No known key found for this signature in database
GPG Key ID: 740C3D9EEDF2ED73

7
debian/changelog vendored

@ -1,3 +1,10 @@
livecd-rootfs (2.664.5) focal; urgency=medium
* Handle seeded lxd snap with channel name for ubuntu-cpc:minimized
(LP: #1889470)
-- Robert C Jennings <robert.jennings@canonical.com> Wed, 29 Jul 2020 14:54:19 -0500
livecd-rootfs (2.664.4) focal; urgency=medium livecd-rootfs (2.664.4) focal; urgency=medium
* snap_preseed: support channel specification with snap name (LP: #1882374) * snap_preseed: support channel specification with snap name (LP: #1882374)

@ -894,7 +894,7 @@ if [ "$PROJECT:${SUBPROJECT:-}" = ubuntu-cpc:minimized ]; then
# build if we see such a snap. # build if we see such a snap.
for snap in `cat config/seeded-snaps`; do for snap in `cat config/seeded-snaps`; do
case $snap in case $snap in
lxd) lxd | lxd=*)
;; ;;
*) *)
echo "Unexpected seeded snap for ubuntu-cpc:minimized build: $snap" echo "Unexpected seeded snap for ubuntu-cpc:minimized build: $snap"

Loading…
Cancel
Save