From b068f7b7851e557878398188d2f59a9fd44f6763 Mon Sep 17 00:00:00 2001 From: Ricardo Branco Date: Fri, 3 Jan 2025 14:15:03 +0100 Subject: [PATCH] containers: Enable BCI tests on CentOS 10 --- tests/containers/update_host.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/containers/update_host.pm b/tests/containers/update_host.pm index 095f35233bb8..636d222fa667 100644 --- a/tests/containers/update_host.pm +++ b/tests/containers/update_host.pm @@ -40,7 +40,8 @@ sub run { # https://bugs.launchpad.net/ubuntu/+source/docker.io/+bug/1950314 script_retry("yes yes | DEBIAN_FRONTEND=noninteractive apt-get upgrade -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 -y --nobest", timeout => $update_timeout); } elsif ($host_distri eq 'rhel') { script_retry("dnf update -y", timeout => $update_timeout);