Thomas Lamprecht [Sun, 26 Mar 2023 09:43:15 +0000 (11:43 +0200)]
backport calendarspec fix for reverse DST change and safety net
backport a patch that copes with mktime moving backward for change to
"summer time" like the Ireland/Dubline TZ (uniquely) does, as for
them the summer time is the standard time. And such, IIUC the
algorithm was caught in an endless loop as basically it continued to
jump back before the time change and redid that time change; this is
not a problem for other TZ as they got the standard time switched and
such time only "moves back" on switch from DST to standard time,
where the switch then doesn't happen anymore.
Additionally add a safety net that aborts calendar spec calculation
after 1000 iterations.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Michael Biebl [Wed, 22 Sep 2021 18:50:26 +0000 (20:50 +0200)]
Demote systemd-timesyncd from Depends to Recommends
This avoids a dependency cycle between systemd and systemd-timesyncd and
thus makes dist upgrades more predictable and robust.
It also allows minimal, systemd based containers where no NTP client is
strictly necessary.
To ensure that systemd-timesyncd is installed in a default installation
created by d-i, bump its priority to standard.
As systemd-udevd no longer sets them up itself, we create them manually
after mounting devtmpfs. This avoids breaking applications which expect
those symlinks.
Support for SYSTEMD_NSS_RESOLVE_VALIDATE=0 requires the changes from
https://github.com/systemd/systemd/pull/17823 for the dnssec bypass
logic. Those are rather invasive changes and not suitable for a stable
backport.
Michael Biebl [Mon, 15 Feb 2021 23:19:21 +0000 (00:19 +0100)]
Downgrade a couple of warnings to debug
If a package still ships only a SysV init script or if a service file or
tmpfile uses /var/run, downgrade those messages to debug. We can use
lintian to detect those issues.
For service files and tmpfiles in /etc, keep the warning, as those files
are typically added locally and aren't checked by lintian.
systemctl: return error code when scheduled shutdown fails
This patch modifies (debian) commit ce31df6711a8(systemctl: do not
shutdown immediately on scheduled shutdown) to return the error code
when scheduled shutdown fails.
Michael Biebl [Mon, 11 Jan 2021 17:49:11 +0000 (18:49 +0100)]
systemctl: do not shutdown immediately on scheduled shutdown
When, for whatever reason, a scheduled shutdown fails to be set, systemd
will proceed with immediate shutdown without allowing the user to react.
This is counterintuitive because when a scheduled shutdown is issued,
it means the user wants to shutdown at a specified time in the future,
not immediately.
Matthias Klumpp [Sat, 16 Jan 2021 19:11:49 +0000 (20:11 +0100)]
Configure localed to run locale-gen to generate missing locale
This applies an (upstreamed) patch to permit systemd-localed to run
locale-gen to generate missing locale when requested to switch the
system locale.
This makes localectl usable on Debian for changing locale without
breaking system localization or even prevent certain applications from
running at all after switching to a non-generated locale.
Michael Biebl [Fri, 25 Dec 2020 22:47:57 +0000 (23:47 +0100)]
Increase timeout when running unit tests
The default timeout for individual unit tests is 30s. On slower
architectures and environments like reproducible-builds, this sometimes
is not enough.
Instead of fine-tuning the timeout for each individual test, we instead
increase the timeouts by a factor of 10.
Michael Biebl [Thu, 3 Dec 2020 21:00:15 +0000 (22:00 +0100)]
d/t/timedated: Ignore return code of dbus-monitor in wait_mon()
We are not really interested in the return code and error messages from
dbus-monitor after killing it, so ignore them to avoid undesired
autopkgtest failures.
Michael Biebl [Fri, 20 Nov 2020 21:28:34 +0000 (22:28 +0100)]
Drop non-functional DefaultTasksMax patch
This patch was supposed to remove the DefaultTasksMax limit, but lost
its actual logic over 4 years ago, when the patches were rebased for the
v231 release. Since nobody has complained so far, we can assume it is
safe to drop this patch.
Michael Biebl [Thu, 19 Nov 2020 21:29:41 +0000 (22:29 +0100)]
Revert "Trigger a systemctl daemon-reload when init scripts are installed or removed"
Remove the dpkg file trigger which called systemctl daemon-reload whenever
a SysV init script was installed. We have proper support in debhelper
nowadays which makes this superfluous and we want to avoid unnecessary
systemctl daemon-reload calls.
Michael Biebl [Tue, 17 Nov 2020 22:01:07 +0000 (23:01 +0100)]
init-functions: update LSB hook to not use ignore-dependencies
job-mode=ignore-dependencies, as currently used in the LSB hook during
bootup and shutdown, can have undesired side-effects, like changing the
ordering of services and ultimately causing them to fail, due to unmet
dependencies.
So simplify that, and only apply --no-block on reload requests during
bootup and shutdown.