@Robin You should be able to just run `systemctl start apt-daily.service
apt-daily-upgrade.service` from the hook. This will start those two
services - which run update / upgrade - in the same transaction, and
hence ordering will work correctly.

The timer will still run again, so it's not _optimal_, but oh well. An
optimal solution would just make the timer "catch up" when the
conditions apply. We'll be able to simulate that I guess by moving away
from ConditionACPower=true to checking battery state ourself, then
exiting with a special error code and retrying on that.

systemd at least was fixed to allow retrying oneshot units a while ago,
but we've not had the chance to rework the apt integration to do
retries.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu.
https://bugs.launchpad.net/bugs/1886161

Title:
  Unattended upgrades should work on roaming laptops

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1886161/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to