From 47e51b2bf752ff7667d787692bb4d141370348e4 Mon Sep 17 00:00:00 2001 From: Michal Sekletar Date: Fri, 30 Aug 2024 18:02:11 +0200 Subject: [PATCH] systemd-252-46.2 Related: RHEL-46339 --- systemd.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/systemd.spec b/systemd.spec index d972e22b..2aae5c77 100644 --- a/systemd.spec +++ b/systemd.spec @@ -25,7 +25,7 @@ Name: systemd Url: https://systemd.io Version: 252 -Release: 46%{?dist}.1 +Release: 46%{?dist}.2 # For a breakdown of the licensing, see README License: LGPLv2+ and MIT and GPLv2+ Summary: System and Service Manager @@ -1839,6 +1839,13 @@ fi %systemd_postun_with_restart systemd-timedated.service systemd-hostnamed.service systemd-journald.service systemd-localed.service +%posttrans +if [ $1 -eq 1 ]; then + # Initial installation + # HACK: apparently there are RPM dependency loops which prevent us from using semodule in %%post so insert policy module again + %selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{selinuxtype}/%{modulename}.pp.bz2 +fi + %post libs %{?ldconfig} @@ -2021,6 +2028,9 @@ systemd-hwdb update &>/dev/null || : %{_prefix}/lib/dracut/modules.d/70rhel-net-naming-sysattrs/* %changelog +* Tue Sep 10 2024 systemd maintenance team - 252-46.2 +- add %%posttrans scriptlet to make sure our SELinux policy module is actually installed (RHEL-46339) + * Tue Sep 03 2024 systemd maintenance team - 252-46.1 - version bump (RHEL-56019) -- 2.45.2