mirror of
https://github.com/containers/podman.git
synced 2025-05-22 09:36:57 +08:00
rpm: do not load iptables modules on f41+
As we started to default to nftables on f41[1,2] we no longer have to load legacy iptables modules. [1] https://fedoraproject.org/wiki/Changes/NetavarkNftablesDefault [2] https://github.com/containers/netavark/pull/1038 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -266,8 +266,8 @@ PODMAN_VERSION=%{version} %{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} ETCDI
|
|||||||
install.remote \
|
install.remote \
|
||||||
install.testing
|
install.testing
|
||||||
|
|
||||||
# Only need this on Fedora until nftables becomes the default
|
# See above for the iptables.conf declaration
|
||||||
%if %{defined fedora}
|
%if %{defined fedora} && 0%{?fedora} < 41
|
||||||
%{__make} DESTDIR=%{buildroot} MODULESLOADDIR=%{_modulesloaddir} install.modules-load
|
%{__make} DESTDIR=%{buildroot} MODULESLOADDIR=%{_modulesloaddir} install.modules-load
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -307,7 +307,10 @@ ln -s ../virtiofsd %{buildroot}%{_libexecdir}/%{name}
|
|||||||
%{_tmpfilesdir}/%{name}.conf
|
%{_tmpfilesdir}/%{name}.conf
|
||||||
%{_systemdgeneratordir}/%{name}-system-generator
|
%{_systemdgeneratordir}/%{name}-system-generator
|
||||||
%{_systemdusergeneratordir}/%{name}-user-generator
|
%{_systemdusergeneratordir}/%{name}-user-generator
|
||||||
%if %{defined fedora}
|
# iptables modules are only needed with iptables-legacy,
|
||||||
|
# as of f41 netavark will default to nftables so do not load unessary modules
|
||||||
|
# https://fedoraproject.org/wiki/Changes/NetavarkNftablesDefault
|
||||||
|
%if %{defined fedora} && 0%{?fedora} < 41
|
||||||
%{_modulesloaddir}/%{name}-iptables.conf
|
%{_modulesloaddir}/%{name}-iptables.conf
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user