Updating device system settings after the device has seeded

Hi,

Is there any supported way to update a devices system settings, after it’s seeded, that does not require full snapd api access ?

I was kind of hoping there might be a way from a gadget snap refresh hook or something, but I’m not seeing anything obvious. snapctl does not cater for this as far as I can tell, even inside a gadget snap.

The use case here is to update settings such as those under watchdog or resilience.

We can absolutely build something specific to take care of this via the snapd API, but it just seemed like it could be something that is already catered for in simpler way.

Thanks.

Cheers, Just

As you noted, there is sadly no way to do anything like this via the gadget, the config defaults: are only processed at first boot (as documented) … so your only way is an “agent” (or “config”) snap with API access…

Thanks for confirming :+1:

It’s a bit of a shame there isn’t something which requires less development and full system access, for standard system systems at least.

Cheers, Just