From 8d952c01dfdf70f1b54a928eb18c1f1fe5b74a30 Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Thu, 9 Mar 2023 18:29:38 +0530 Subject: [PATCH] podman.spec.rpkg: distro conditionals for modulesloaddir 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 --- podman.spec.rpkg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/podman.spec.rpkg b/podman.spec.rpkg index afe26674a6..07d0a301b6 100644 --- a/podman.spec.rpkg +++ b/podman.spec.rpkg @@ -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