mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-07 00:41:40 +00:00
Run "snap debug validate-seed" to do basic validation of the generated seed.yaml
(cherry picked from commit b208ded59ea9e54ad42bd071a39cebe2e4809aa4) Signed-off-by: Iain Lane <iain.lane@canonical.com>
This commit is contained in:
parent
51ef72e5b9
commit
3b3fe0fce8
2
debian/control
vendored
2
debian/control
vendored
@ -33,7 +33,7 @@ Depends: ${misc:Depends},
|
|||||||
python3-software-properties,
|
python3-software-properties,
|
||||||
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],
|
||||||
|
@ -579,6 +579,15 @@ snap_preseed() {
|
|||||||
touch "$CHROOT_ROOT/var/lib/snapd/seed/.snapd-explicit-install-stamp"
|
touch "$CHROOT_ROOT/var/lib/snapd/seed/.snapd-explicit-install-stamp"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
# Do basic validation of generated snapd seed.yaml, doing it here
|
||||||
|
# means we catch all the places(tm) that snaps are added but the
|
||||||
|
# downside is that each time a snap is added the seed must be valid,
|
||||||
|
# i.e. snaps with bases need to add bases first etc.
|
||||||
|
if [ -e chroot/var/lib/snapd/seed/seed.yaml ]; then
|
||||||
|
snap debug validate-seed "$CHROOT_ROOT/var/lib/snapd/seed/seed.yaml"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
is_live_layer () {
|
is_live_layer () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user