[Bug 2006589] Re: Anacron service and timer disabled after upgrading from 2.3-33

Adrien Nader 2006589 at bugs.launchpad.net
Wed Feb 15 11:50:38 UTC 2023


I had an issue with my mail sync and didn't notice your comments here.

The issue with persisting changes is that there is a window of time
during which we could end up overwriting user changes. The more time
between preinst and postinst, the more likely we are to un-do something
done by the user. It might be possible to protect more against that by
re-using my logic from the first iteration of the patch and check
whether the on-disk and in-memory states differ. There would still be a
window of time during which we would be blind (namely a reboot and/or
another systemctl enable/disable anacron.{timer,service}) but it would
be smaller.

That being said, I don't think we can have a perfect solution without
overwriting 2.3-33's postrm file on disk (I've been tempted to do that
more than once) and there is almost certainly a decision to make between
possibly being blind to user changes, and not restoring the state in all
situations.

About deb-systemd-helper, I don't think this is an issue with it. I need
to audit this again in order to be sure.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to anacron in Ubuntu.
https://bugs.launchpad.net/bugs/2006589

Title:
  Anacron service and timer disabled after upgrading from 2.3-33

Status in anacron package in Ubuntu:
  Confirmed

Bug description:
  As hinted by https://lists.debian.org/debian-devel-
  announce/2022/11/msg00001.html , anacron 2.3-33's packaging has a bug
  which disables both the timer and service when its postrm script is
  invoked and that includes upgrades from this package.

  We need to work-around this issue since it is the version in kinetic.

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




More information about the foundations-bugs mailing list