Comment 22 for bug 1658219

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks Jamie! I looked into this from the snapd side and I think we should do the following:

a) wait with the release of the *snap* until snapd 2.41 is released (scheduled Sep 9, we can try to release sooner if its criticial)
b) add the following to the kernel snapcraft.yaml: "assumes: [snapd2.41]"

The addition in (b) will mean that snapd will not refresh the kernel unless snapd 2.41 is available which is generate the right apparmor profiles. The UX of this is not super great right now, i.e. when doing: "snap refresh pc-kernel" with an older snapd the kernel will be downloaded but it will error and not install the kernel. The error message is sensible though. The background auto-refresh will behave in the same way. However this should be ok as long as we make sure the kernel is released after snapd 2.41 is available. Then pretty much everyone will get the auto-refreshed core first. And even if things happen out-of-order snapd will only install the kernel when snapd 2.41 is running.

Of course it would be even nicer if the store would understand "assumes: [snapd2.41]" and only offer the refresh to devices that have snapd 2.41. We do send the snapd version to the store when we do a refresh so in theory all the piece are in place AFAICT. Then we could error early instead of having to download the snap first.