mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-08-08 07:14:08 +00:00
live-build: move snap seed validation into preinstall_snaps (thanks to rcj)
This commit is contained in:
parent
8bc09a160b
commit
ac717bff40
@ -88,6 +88,11 @@ preinstall_snaps() {
|
|||||||
snap_preseed chroot "${snap}"
|
snap_preseed chroot "${snap}"
|
||||||
done
|
done
|
||||||
lb chroot_resolv remove
|
lb chroot_resolv remove
|
||||||
|
|
||||||
|
# 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
|
||||||
}
|
}
|
||||||
|
|
||||||
rm -f binary.success
|
rm -f binary.success
|
||||||
@ -529,11 +534,6 @@ 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…
x
Reference in New Issue
Block a user