From 043d045ae8f01842f6b543cee01b5ec2675309be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 16 Feb 2022 08:10:11 +0000 Subject: [PATCH] Drop obsolete workaround in scriptlet The bug with daemon-reload was fixed a long time ago. The direct invocation of 'systemctl daemon-reload' with no redirect of errors to /dev/null causes a user-visible message when installing into a chroot: Running scriptlet: chrony-4.2-4.fc37.x86_64 320/334 System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down ... --- chrony.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/chrony.spec b/chrony.spec index 61cc102..16676c6 100644 --- a/chrony.spec +++ b/chrony.spec @@ -9,7 +9,7 @@ Name: chrony Version: 4.2 -Release: 4%{?dist} +Release: 5%{?dist} Summary: An NTP client/server License: GPLv2 @@ -161,8 +161,6 @@ getent passwd chrony > /dev/null || /usr/sbin/useradd -r -g chrony \ : %post -# workaround for late reload of unit file (#1614751) -%{_bindir}/systemctl daemon-reload # migrate from chrony-helper to sourcedir directive if test -a %{_libexecdir}/chrony-helper; then grep -qi 'sourcedir /run/chrony-dhcp$' %{_sysconfdir}/chrony.conf 2> /dev/null || \ @@ -202,6 +200,9 @@ fi %dir %attr(750,chrony,chrony) %{_localstatedir}/log/chrony %changelog +* Wed Feb 16 2022 Zbigniew Jędrzejewski-Szmek - 4.2-5 +- Drop obsolete workaround in scriptlet + * Wed Feb 09 2022 Miroslav Lichvar 4.2-4 - update seccomp filter for latest glibc