fixlet-container-post.sh and systemd-nspawn.conf are only shipped when machined is enabled

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1401
This commit is contained in:
2023-06-21 11:34:13 +00:00
committed by Git OBS Bridge
parent ab3e167139
commit caf3abe93c

View File

@@ -1097,14 +1097,14 @@ fi
%endif %endif
%post container %post container
%if %{with machined}
%if %{without filetriggers} %if %{without filetriggers}
%tmpfiles_create systemd-nspawn.conf %tmpfiles_create systemd-nspawn.conf
%endif %endif
%if %{with machined}
%systemd_post machines.target %systemd_post machines.target
%ldconfig %ldconfig
%endif
%{_systemd_util_dir}/rpm/fixlet-container-post.sh $1 || : %{_systemd_util_dir}/rpm/fixlet-container-post.sh $1 || :
%endif
%if %{with coredump} %if %{with coredump}
%post coredump %post coredump