Skip to content

Commit

Permalink
Merge pull request #17725 from lsm5/modulesload-conditional-rhel10
Browse files Browse the repository at this point in the history
podman.spec.rpkg: distro conditionals for modulesloaddir
  • Loading branch information
openshift-merge-robot authored Mar 9, 2023
2 parents 747369c + 8d952c0 commit 80be8c3
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 80be8c3

Please sign in to comment.