Commit Graph

15 Commits

Author SHA1 Message Date
Balint Reczey
d6483013d5 Ship systemd-timesyncd in a separate package
The new systemd-timesyncd package conflicting with other NTP-related
packages resolves the problems arising when installing systemd-timesyncd
and other NTP servers on the same system.

Co-authored-by: Michael Biebl <biebl@debian.org>
LP: #1849156
Closes: #805927, #947936
2020-04-02 16:36:09 +02:00
Michael Biebl
63e31c4970 Stop re-enabling systemd services on every upgrade
This was done so changes to the [Install] section would be applied on
upgrades. Forcefully re-enabling a service might overwrite local
modifications though and thus far, none of the affected services did
actually change its [Install] section. So remove this code from the
maintainer scripts as it was apparently doing more harm then good.

Closes: #869354
2018-01-02 00:27:11 +01:00
Michael Biebl
d8fe964444 console-shell.service got removed upstream in v233 2017-03-03 15:33:54 +01:00
Michael Biebl
9945bfe553 Simplify version checks for save_is_enabled
Stop testing for specific versions. This is no longer necessary as even
the versions in jessie satisfy those requirements.

Also, run the code on upgrades only. Trying to do that on new installs
(even if there is state from a removed but not purged systemd package)
is rather pointless, as systemctl will not be available at this point.
2017-03-03 15:32:57 +01:00
Michael Biebl
320aed41fc debian/systemd.preinst: Correctly determine whether a service is enabled
Testing for the return code alone is not sufficient as we need to
differentiate between "generated" and "enabled" services.

Closes: #825981
2016-06-21 23:10:41 +02:00
Martin Pitt
627c2aa2d6 systemd.{pre,post}inst: Clean up obsolete upgrade fixes
These applied to upgrades to wheezy or jessie.
2015-05-12 09:24:17 +02:00
Martin Pitt
01dd876967 Drop installation of readahead related services and code
Readahead got dropped in this version.
2014-11-28 10:52:32 +01:00
Jon Severinsson
bb8785d8c4 Do not force-enable default-on services on every upgrade.
Also drops the systemd-networkd, systemd-resolved and systemd-timesyncd
from the set of default services.
2014-08-10 11:04:26 +02:00
Michael Stapelberg
449d45f17b preinst: only preserve unit files for systems running systemd as PID 1 (Thanks mbiebl) 2013-10-28 08:02:58 +01:00
Michael Stapelberg
75051b6a5a preinst: preserve var-{lock,run}.mount when upgrading from 44 to 204
Closes: #723936
2013-10-27 22:50:51 +01:00
Tollef Fog Heen
1394b97d98 Move diversion removal from postinst to preinst. Closes: #679728 2012-07-01 08:23:34 +02:00
Tollef Fog Heen
27bb26a30a Ship lsb init script override/integration in /lib/lsb/init-functions.d
Do this rather than diverting /lib/lsb/init-functions itself.  Add
appropriate Breaks to ensure upgrades happen.
2012-06-30 20:25:16 +02:00
Michael Biebl
e3c0434f4a Use new dh_installdeb maintscript facility to handle obsolete conffiles.
Bump Build-Depends on debhelper accordingly.

Conflicts:

	debian/changelog
2012-02-28 07:57:19 +01:00
Michael Biebl
5db9a9988c Remove obsolete conffiles from /etc/tmpfiles.d on upgrades. Those files are installed in /usr/lib/tmpfiles.d now. 2011-06-29 14:00:03 +02:00
Tollef Fog Heen
44b765a9e8 Divert lsb init-functions instead of abusing logging hook 2011-04-21 17:19:33 +02:00