From 0dfb022f407bf9294005041777219779eab958f4 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 ... Related: #2051441 --- chrony.spec | 2 -- 1 file changed, 2 deletions(-) diff --git a/chrony.spec b/chrony.spec index 4c9f83b..51253f2 100644 --- a/chrony.spec +++ b/chrony.spec @@ -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 || \