mirror of https://github.com/containers/podman.git
podman.spec.rpkg: distro conditionals for modulesloaddir
RHEL 8 and 9 don't have /usr/lib/modules-load.d yet.
Related dist-git commit:
c82d37a5b3
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
parent
747369c82d
commit
8d952c01df
|
@ -172,7 +172,9 @@ PODMAN_VERSION=%{version} %{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} ETCDI
|
|||
install.docker \
|
||||
install.docker-docs \
|
||||
install.remote \
|
||||
%if 0%{?fedora} || 0%{?rhel} >= 10
|
||||
install.modules-load
|
||||
%endif
|
||||
|
||||
install -d -p %{buildroot}/%{_datadir}/%{name}/test/system
|
||||
cp -pav test/system %{buildroot}/%{_datadir}/%{name}/test/
|
||||
|
@ -225,7 +227,9 @@ fi
|
|||
%{_userunitdir}/%{name}-kube@.service
|
||||
%{_tmpfilesdir}/%{name}.conf
|
||||
%{_user_tmpfilesdir}/%{name}-docker.conf
|
||||
%if 0%{?fedora} || 0%{?rhel} >= 10
|
||||
%{_modulesloaddir}/%{name}-iptables.conf
|
||||
%endif
|
||||
|
||||
%files docker
|
||||
%{_bindir}/docker
|
||||
|
|
Loading…
Reference in New Issue