Automatic gadget asset updates

One of the requests we get from integrators is to allow to update assets in the gadget snap. The gadget snap is currently updated (like any other snap).

However the parts described in meta/gadget.yaml is only read on image provisioning (example: https://github.com/snapcore/pc-amd64-gadget/blob/master/gadget.yaml).

I propose we add a new yaml key under “content” that allows to specify “auto-refresh: true” as an opt-in. If snapd finds content with this option it will copy those files from the gadget snap to the target filesystem if the files are different.

There is also the idea of adding more semantic descriptions for this.

This should solve bug https://bugs.launchpad.net/snapd/+bug/1664388

Last updated 1 year, 3 months ago. Help improve this document in the forum.