Bug#801389: Disabling timedatectl/NTP across package upgrades

Michael Biebl biebl at debian.org
Fri Oct 9 18:33:12 BST 2015


Am 09.10.2015 um 19:25 schrieb Yuri D'Elia:
> On 09/10/15 19:15, Michael Biebl wrote:
>>> # systemctl is-enabled systemd-timesyncd.service
>>> enabled
>>
>> Can you provide the full log?
> 
> I closed the terminal already [heh], but there was nothing interesting
> in replacing the other systemd packages. I pasted the entire contents of
> the post-install triggers. The only useful message is the creation of
> the symlink related to systemd-timesyncd, which I do remember noticing
> in the past.
> 
> The contents of dpkg.log look uninteresting as they do not contain much
> detail, same for syslog.
> 
> Simply re-installing 227-2 does not re-enable the service.
> 
> I could try to downgrade to 227-1 and upgrade again.
> Any log/detail you want me to explicitly log?
> 

The complete log dpkg log from the upgrade.
Also make sure to disable the service (again) before doing the tests.

We basically have two places in systemd.postinst, where the service can
be enabled:
The one which reads the entries from /run/systemd/was-enabled (which is
created in preinst) which doesn't seem to happen in your case.

and

if dpkg --compare-versions "$2" lt "218-11~"; then
    systemctl enable systemd-timesyncd.service || true
fi

The latter should only be run from upgrades older then 218-11 or on new
installs.


So for some reason "$2" (the old version) was either empty or lower then
218-11.

That's why I want the complete dpkg log.

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20151009/29c70d2e/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list