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
  ...
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2022-02-16 08:10:11 +00:00 committed by Miroslav Lichvar
parent 29c4de2d77
commit 043d045ae8

View File

@ -9,7 +9,7 @@
Name: chrony Name: chrony
Version: 4.2 Version: 4.2
Release: 4%{?dist} Release: 5%{?dist}
Summary: An NTP client/server Summary: An NTP client/server
License: GPLv2 License: GPLv2
@ -161,8 +161,6 @@ getent passwd chrony > /dev/null || /usr/sbin/useradd -r -g chrony \
: :
%post %post
# workaround for late reload of unit file (#1614751)
%{_bindir}/systemctl daemon-reload
# migrate from chrony-helper to sourcedir directive # migrate from chrony-helper to sourcedir directive
if test -a %{_libexecdir}/chrony-helper; then if test -a %{_libexecdir}/chrony-helper; then
grep -qi 'sourcedir /run/chrony-dhcp$' %{_sysconfdir}/chrony.conf 2> /dev/null || \ 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 %dir %attr(750,chrony,chrony) %{_localstatedir}/log/chrony
%changelog %changelog
* Wed Feb 16 2022 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 4.2-5
- Drop obsolete workaround in scriptlet
* Wed Feb 09 2022 Miroslav Lichvar <mlichvar@redhat.com> 4.2-4 * Wed Feb 09 2022 Miroslav Lichvar <mlichvar@redhat.com> 4.2-4
- update seccomp filter for latest glibc - update seccomp filter for latest glibc