Automatic Updates in Kinoite: safety parameters

I would like to ask some questions about this.

Is the Discover auto-update an abstraction for this process? or a specific integration in plasma-discover-rpm-ostree?

My requirements for automatic updates are

  1. dont consume much CPU load (nice-value low)
  2. dont run when machine is on high load
  3. dont run on low battery
  4. dont download when on metered network

These are really easy with a systemd service, but I dont know anything about that GUI integration, how it could be configured there, or if there are any defaults on these points.

Discover directly uses the interfaces offered by rpm-ostree and not the rpm-ostreed-automatic.service. Any CPU constraints would have to be added to rpm-ostreed.service, the actual daemon running the update and any environment constraints (time of day, battery, etc.) will have to be added to Discover.

1 Like

Thanks! I will look into that. Battery can not be included in the daemon? It can be read very easily just using shell commands.

The rpm-ostree daemon only exists to be a safe mechanism to perform operations. It does not decide “when” those operations take place. It’s something else (i.e. Discover) that would have to read battery state and decide when to trigger updates.

3 Likes