Skip to content

Commit 206d284

Browse files
committed
(bugfix) Enable bpf on Centos/Rocky/AlmaLinux 8
1 parent 3b97d1b commit 206d284

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

spec/spec_helper_acceptance_local.rb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,16 @@ def fetch_os_name
6161
c.filter_run_excluding condition_parameter_test: false
6262
c.before :suite do
6363
# Depmod is not availible by default on our AlmaLinux/CentOS 8 docker image
64-
LitmusHelper.instance.run_shell('yum install kmod -y') if ['almalinux-8', 'centos-8'].include?("#{fetch_os_name}-#{os[:release].to_i}")
64+
if ['almalinux-8', 'centos-8', 'rocky-8'].include?("#{fetch_os_name}-#{os[:release].to_i}")
65+
LitmusHelper.instance.run_shell('yum install kmod -y')
66+
LitmusHelper.instance.run_shell('yum update -y')
67+
LitmusHelper.instance.run_shell('depmod -a')
68+
['xt_bpf'].each do |t|
69+
LitmusHelper.instance.run_shell("modprobe #{t}")
70+
end
71+
LitmusHelper.instance.run_shell('touch /etc/sysconfig/iptables')
72+
LitmusHelper.instance.run_shell('touch /etc/sysconfig/ip6tables')
73+
end
6574
if ['centos-7', 'scientific-7'].include?("#{fetch_os_name}-#{os[:release].to_i}")
6675
LitmusHelper.instance.run_shell('yum update -y')
6776
LitmusHelper.instance.run_shell('depmod -a')

0 commit comments

Comments
 (0)