Some (classic) snaps need to make sure to run after snapd is fully seeded because they use snaps that are part of the seed.
To support this I have the following strawman:
- add new
snapd.seeded.service
which will only finish if snapd is fully seeded (https://github.com/snapcore/snapd/pull/5124) - allow a whitelisted list of targets for the after/before relation for snap applications. So e.g.
after: [external:snapd.seeded.service]
(https://github.com/snapcore/snapd/pull/5132). Currently the only external targetssnapd.service
andsnapd.seeded.service
are allowed.
Happy to discuss approach and wording - the PRs above are ready but I will tweak according to the outcome of this forum discussion.