- systemd.spec: switch to %ldconfig_scriptlets

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1448
This commit is contained in:
Franck Bui 2023-09-27 10:02:08 +00:00 committed by Git OBS Bridge
parent 425b7c38bb
commit 885d7925a8
2 changed files with 9 additions and 7 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Sep 27 09:52:33 UTC 2023 - Franck Bui <fbui@suse.com>
- systemd.spec: switch to %ldconfig_scriptlets
-------------------------------------------------------------------
Wed Sep 27 07:31:06 UTC 2023 - Franck Bui <fbui@suse.com>

View File

@ -1126,11 +1126,8 @@ fi
%posttrans -n udev%{?mini}
%regenerate_initrd_posttrans
%post -n libudev%{?mini}1 -p %ldconfig
%post -n libsystemd0%{?mini} -p %ldconfig
%postun -n libudev%{?mini}1 -p %ldconfig
%postun -n libsystemd0%{?mini} -p %ldconfig
%ldconfig_scriptlets -n libsystemd0%{?mini}
%ldconfig_scriptlets -n libudev%{?mini}1
%if %{with machined}
%pre container
@ -1140,17 +1137,17 @@ fi
%systemd_preun machines.target
%postun container
%systemd_postun machines.target
%ldconfig
%systemd_postun machines.target
%endif
%post container
%if %{with machined}
%ldconfig
%if %{without filetriggers}
%tmpfiles_create systemd-nspawn.conf
%endif
%systemd_post machines.target
%ldconfig
%{_systemd_util_dir}/rpm/fixlet-container-post.sh $1 || :
%endif