mirror of
https://github.com/containers/podman.git
synced 2025-10-13 09:15:20 +08:00
remove contrib/modules-load.d
We used this to load the iptables module, since f41 we use nftables by default which does not need this at all so drop the module load file. If some distros default still to the legacy iptables they can manually add the moduled load file back. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
6
Makefile
6
Makefile
@ -52,7 +52,6 @@ ETCDIR ?= /etc
|
||||
LIBDIR ?= ${PREFIX}/lib
|
||||
TMPFILESDIR ?= ${LIBDIR}/tmpfiles.d
|
||||
USERTMPFILESDIR ?= ${PREFIX}/share/user-tmpfiles.d
|
||||
MODULESLOADDIR ?= ${LIBDIR}/modules-load.d
|
||||
SYSTEMDDIR ?= ${LIBDIR}/systemd/system
|
||||
USERSYSTEMDDIR ?= ${LIBDIR}/systemd/user
|
||||
SYSTEMDGENERATORSDIR ?= ${LIBDIR}/systemd/system-generators
|
||||
@ -921,11 +920,6 @@ install.testing:
|
||||
install ${SELINUXOPT} -d -m 755 $(DESTDIR)$(BINDIR)
|
||||
install ${SELINUXOPT} -m 755 bin/podman-testing $(DESTDIR)$(BINDIR)/podman-testing
|
||||
|
||||
.PHONY: install.modules-load
|
||||
install.modules-load: # This should only be used by distros which might use iptables-legacy, this is not needed on RHEL
|
||||
install ${SELINUXOPT} -m 755 -d $(DESTDIR)${MODULESLOADDIR}
|
||||
install ${SELINUXOPT} -m 644 contrib/modules-load.d/podman-iptables.conf $(DESTDIR)${MODULESLOADDIR}/podman-iptables.conf
|
||||
|
||||
.PHONY: install.man
|
||||
install.man:
|
||||
install ${SELINUXOPT} -d -m 755 $(DESTDIR)$(MANDIR)/man1
|
||||
|
@ -1,5 +0,0 @@
|
||||
# On fedora 36 ip_tables is no longer auto loaded and rootless user have no permsissions to load it.
|
||||
# When we have actual nftables support in the future we might want to revisit this.
|
||||
# If you use iptables-nft this is not needed.
|
||||
ip_tables
|
||||
ip6_tables
|
@ -296,11 +296,6 @@ PODMAN_VERSION=%{version} %{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} ETCDI
|
||||
install.remote \
|
||||
install.testing
|
||||
|
||||
# See above for the iptables.conf declaration
|
||||
%if %{defined fedora} && 0%{?fedora} < 41
|
||||
%{__make} DESTDIR=%{buildroot} MODULESLOADDIR=%{_modulesloaddir} install.modules-load
|
||||
%endif
|
||||
|
||||
sed -i 's;%{buildroot};;g' %{buildroot}%{_bindir}/docker
|
||||
|
||||
# do not include docker and podman-remote man pages in main package
|
||||
|
Reference in New Issue
Block a user