Skip to content

Commit

Permalink
podman.spec.rpkg: distro conditionals for modulesloaddir
Browse files Browse the repository at this point in the history
RHEL 8 and 9 don't have /usr/lib/modules-load.d yet.

Related dist-git commit:
https://src.fedoraproject.org/rpms/podman/c/c82d37a5b3c102088775e16bca817437e425b5d1

Signed-off-by: Lokesh Mandvekar <[email protected]>
  • Loading branch information
lsm5 committed Mar 9, 2023
1 parent 747369c commit 8d952c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions podman.spec.rpkg
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down Expand Up @@ -225,7 +227,9 @@ fi
%{_userunitdir}/%{name}[email protected]
%{_tmpfilesdir}/%{name}.conf
%{_user_tmpfilesdir}/%{name}-docker.conf
%if 0%{?fedora} || 0%{?rhel} >= 10
%{_modulesloaddir}/%{name}-iptables.conf
%endif

%files docker
%{_bindir}/docker
Expand Down

0 comments on commit 8d952c0

Please sign in to comment.