diff --git a/tests/containers/host_configuration.pm b/tests/containers/host_configuration.pm index 819305ba9288..8138017d79fd 100644 --- a/tests/containers/host_configuration.pm +++ b/tests/containers/host_configuration.pm @@ -48,7 +48,8 @@ sub run { assert_script_run("dhclient -v"); script_retry("apt-get update -qq -y", timeout => $update_timeout); } elsif ($host_distri eq 'centos') { - assert_script_run("dhclient -v"); + # dhclient is no longer available in CentOS 10 + script_run("dhclient -v"); script_retry("dnf update -q -y --nobest", timeout => $update_timeout); } elsif ($host_distri eq 'rhel') { script_retry("dnf update -q -y", timeout => $update_timeout);