From 4cc75bbba53dd56a13f94bc57cad76455c74b26c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 23 Feb 2022 23:27:29 +0100 Subject: [PATCH] Move part of %post scriptlet for resolved to %posttrans (rhbz#2018913) --- systemd.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/systemd.spec b/systemd.spec index 4d7be0f..bc49b63 100644 --- a/systemd.spec +++ b/systemd.spec @@ -31,7 +31,7 @@ Name: systemd Url: https://www.freedesktop.org/wiki/Software/systemd %if %{without inplace} Version: 250.3 -Release: 4%{?dist} +Release: 5%{?dist} %else # determine the build information from local checkout Version: %(tools/meson-vcs-tag.sh . error | sed -r 's/-([0-9])/.^\1/; s/-g/_g/') @@ -395,12 +395,11 @@ devices. %package resolved Summary: Network Name Resolution manager -Requires(post): %{name} -Requires(post): grep Requires: %{name}%{?_isa} = %{version}-%{release} Obsoletes: %{name} < 249~~ Requires: libidn2.so.0%{?elf_suffix} Requires: libidn2.so.0(IDN2_0.0.0)%{?elf_bits} +Requires(posttrans): grep %description resolved systemd-resolved is a system service that provides network name resolution to @@ -922,6 +921,7 @@ fi %systemd_post systemd-resolved.service +%posttrans resolved # Create /etc/resolv.conf symlink. # We would also create it using tmpfiles, but let's do this here # too before NetworkManager gets a chance. (systemd-tmpfiles invocation above @@ -1004,6 +1004,9 @@ fi %files standalone-sysusers -f .file-list-standalone-sysusers %changelog +* Wed Feb 23 2022 Zbigniew Jędrzejewski-Szmek - 250.3-5 +- Move part of %%post scriptlet for resolved to %%posttrans (#2018913) + * Wed Feb 16 2022 Zbigniew Jędrzejewski-Szmek - 250.3-4 - Drop scriptlet for handling nobody user upgrades from Fedora <28 - Specify owner of /var/log/journal as root in the rpm listing (#2018913)