Run "snap debug validate-seed" to do basic validation of the geerated seed.yaml

u-i-cloud-init
Michael Vogt 6 years ago
parent 7ec97a627a
commit 8bc09a160b

2
debian/control vendored

@ -34,7 +34,7 @@ Depends: ${misc:Depends},
python3-yaml, python3-yaml,
qemu-utils, qemu-utils,
rsync, rsync,
snapd, snapd (>= 2.39),
squashfs-tools (>= 1:3.3-1), squashfs-tools (>= 1:3.3-1),
sudo, sudo,
u-boot-tools [armhf arm64], u-boot-tools [armhf arm64],

@ -529,6 +529,11 @@ if [ -z "$PASSES" ] && [ -e "$PREFIX.manifest" ]; then
./config/snap-seed-parse "chroot/" "$PREFIX.manifest" ./config/snap-seed-parse "chroot/" "$PREFIX.manifest"
fi 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 # 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 # at this point we reset it to "none" as all the work to extract it was done already
# in a binary hook # in a binary hook

Loading…
Cancel
Save