We have a Yocto-based image, that has snapd and ships a bunch of snaps by default. Currently all snaps that we ship are downloaded from the Snap store by running
snap prepare-image --classic --arch=arm64 classic.model . --snap snapd
This works fine if we are pulling snaps from the snap store, but we want to be able to ship a snap that we built locally, something that we currently don’t publish to the snap store.
How can I achieve that ?