Skip to content

Commit 36a159a

Browse files
committed
(BUGFIX) Install the xt_bpf module to AlmaLinux 8 and Rocky Linux 8
1 parent e59794d commit 36a159a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

spec/spec_helper_acceptance_local.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,14 @@ def fetch_os_name
7171
end
7272
LitmusHelper.instance.run_shell('touch /etc/sysconfig/iptables')
7373
LitmusHelper.instance.run_shell('touch /etc/sysconfig/ip6tables')
74+
elsif ['almalinux-8', 'rocky-8'].include?("#{fetch_os_name}-#{os[:release].to_i}")
75+
LitmusHelper.instance.run_shell('depmod -a')
76+
['xt_bpf'].each do |t|
77+
LitmusHelper.instance.run_shell("modprobe iptable_#{t}")
78+
LitmusHelper.instance.run_shell("modprobe ip6table_#{t}")
79+
end
80+
LitmusHelper.instance.run_shell('touch /etc/sysconfig/iptables')
81+
LitmusHelper.instance.run_shell('touch /etc/sysconfig/ip6tables')
7482
end
7583
if os[:family] == 'debian'
7684
LitmusHelper.instance.run_shell('apt-get update -y')

0 commit comments

Comments
 (0)