From 918fcea6b195d375e9691d29abbe4a013e14d499 Mon Sep 17 00:00:00 2001 From: Michal Schmidt Date: Sun, 22 Jan 2012 20:46:52 +0100 Subject: [PATCH] run ldconfig in %post and %postun We ship shared libraries, ldconfig is mandatory. --- systemd.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/systemd.spec b/systemd.spec index 80932a1..f9fdb59 100644 --- a/systemd.spec +++ b/systemd.spec @@ -174,6 +174,7 @@ mkdir -p %{buildroot}%{_sysconfdir}/rsyslog.d/ install -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/rsyslog.d/ %post +/sbin/ldconfig /bin/systemd-machine-id-setup > /dev/null 2>&1 || : /bin/systemctl daemon-reexec > /dev/null 2>&1 || : @@ -214,6 +215,7 @@ else fi %postun +/sbin/ldconfig if [ $1 -ge 1 ] ; then /bin/systemctl daemon-reload > /dev/null 2>&1 || : /bin/systemctl try-restart systemd-logind.service >/dev/null 2>&1 || :