diff options
author | Paul Holzinger <pholzing@redhat.com> | 2022-02-23 15:34:41 +0100 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2022-02-23 14:25:09 -0500 |
commit | a0c34d64a53e0eaa42ea8dbe433bae96c347ddc1 (patch) | |
tree | 9ed7584652fd4420d3a4e66b88fe0d923c1433db /podman.spec.rpkg | |
parent | 172b745d0e796327cc23c19e61973365bb1488ef (diff) | |
download | podman-a0c34d64a53e0eaa42ea8dbe433bae96c347ddc1.tar.gz podman-a0c34d64a53e0eaa42ea8dbe433bae96c347ddc1.tar.bz2 podman-a0c34d64a53e0eaa42ea8dbe433bae96c347ddc1.zip |
Load ip_tables modules at boot
Rootless users cannot load the ip_tables module, in fedora 36 this
module is no longer loaded by default so we have to add it manually.
This is needed because rootless network setup tries to use iptables
and if iptables-legacy is used instead of iptables-nft it will fail.
To provide a better user experience we will load the module at boot.
Note that this is not needed for RHEL because iptables-legacy is not
supported on RHEL 8 and newer.
[NO NEW TESTS NEEDED]
Fixes #12661
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'podman.spec.rpkg')
-rw-r--r-- | podman.spec.rpkg | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/podman.spec.rpkg b/podman.spec.rpkg index 4068b3a81..a6f66ce98 100644 --- a/podman.spec.rpkg +++ b/podman.spec.rpkg @@ -203,6 +203,9 @@ PODMAN_VERSION=%{version} %{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} ETCDI install.docker \ install.docker-docs \ install.remote \ +%if 0%{?fedora} >= 36 + install.modules-load +%endif install -d -p %{buildroot}/%{_datadir}/%{name}/test/system cp -pav test/system %{buildroot}/%{_datadir}/%{name}/test/ @@ -239,6 +242,9 @@ done %{_userunitdir}/%{name}.socket %{_userunitdir}/%{name}-restart.service %{_usr}/lib/tmpfiles.d/%{name}.conf +%if 0%{?fedora} >= 36 + %{_usr}/lib/modules-load.d/%{name}-iptables.conf +%endif %files docker %{_bindir}/docker |