Skip to content

Commit e81a116

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

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

spec/spec_helper_acceptance_local.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,15 @@ 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('yum update -y')
76+
LitmusHelper.instance.run_shell('depmod -a')
77+
['xt_bpf'].each do |t|
78+
LitmusHelper.instance.run_shell("modprobe iptable_#{t}")
79+
LitmusHelper.instance.run_shell("modprobe ip6table_#{t}")
80+
end
81+
LitmusHelper.instance.run_shell('touch /etc/sysconfig/iptables')
82+
LitmusHelper.instance.run_shell('touch /etc/sysconfig/ip6tables')
7483
end
7584
if os[:family] == 'debian'
7685
LitmusHelper.instance.run_shell('apt-get update -y')

0 commit comments

Comments
 (0)