fix duplicate %post container

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1388
This commit is contained in:
Franck Bui 2023-05-05 16:43:41 +00:00 committed by Git OBS Bridge
parent 0e1241b678
commit 2500846e7f

View File

@ -1133,14 +1133,6 @@ rm -f /etc/udev/rules.d/{20,55,65}-cdrom.rules
%postun -n libudev%{?mini}1 -p %ldconfig %postun -n libudev%{?mini}1 -p %ldconfig
%postun -n libsystemd0%{?mini} -p %ldconfig %postun -n libsystemd0%{?mini} -p %ldconfig
%post container
%tmpfiles_create systemd-nspawn.conf
%if %{with machined}
%systemd_post machines.target
%ldconfig
%endif
%{_systemd_util_dir}/rpm/fixlet-container-post.sh $1 || :
%if %{with machined} %if %{with machined}
%pre container %pre container
%systemd_pre machines.target %systemd_pre machines.target