diff --git a/debian/control b/debian/control index 1b8b558c..73519d8b 100644 --- a/debian/control +++ b/debian/control @@ -34,7 +34,7 @@ Depends: ${misc:Depends}, python3-yaml, qemu-utils, rsync, - snapd, + snapd (>= 2.39), squashfs-tools (>= 1:3.3-1), sudo, u-boot-tools [armhf arm64], diff --git a/live-build/auto/build b/live-build/auto/build index 74630174..72d95202 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -529,6 +529,11 @@ if [ -z "$PASSES" ] && [ -e "$PREFIX.manifest" ]; then ./config/snap-seed-parse "chroot/" "$PREFIX.manifest" fi +# Do basic validation of generated snapd seed.yaml. +if [ -e chroot/var/lib/snapd/seed/seed.yaml ]; then + snap debug validate-seed chroot/var/lib/snapd/seed/seed.yaml +fi + # ubuntu-core splits kernel stuff into a "device" tarball so # at this point we reset it to "none" as all the work to extract it was done already # in a binary hook