#7 Drop obsolete workaround in scriptlet
Closed 2 years ago by mlichvar. Opened 2 years ago by zbyszek.
rpms/ zbyszek/chrony fix-scriptlet  into  rawhide

file modified
+4 -3
@@ -9,7 +9,7 @@ 

  

  Name:           chrony

  Version:        4.2

- Release:        4%{?dist}

+ Release:        3%{?dist}

  Summary:        An NTP client/server

  

  License:        GPLv2
@@ -161,8 +161,6 @@ 

  :

  

  %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 @@ 

  %dir %attr(750,chrony,chrony) %{_localstatedir}/log/chrony

  

  %changelog

+ * Wed Feb 16 2022 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 4.2-3

+ - Drop obsolete workaround in scriptlet

+ 

  * Wed Feb 09 2022 Miroslav Lichvar <mlichvar@redhat.com> 4.2-4

  - update seccomp filter for latest glibc

  

The bug with daemon-reload was fixed a long time ago.
The direct invocatio 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
...

Applied (with fixed release number). Thanks!

Pull-Request has been closed by mlichvar

2 years ago
Metadata