From bcc726d3b745bad20b206a90b5139cceb6bc3eba Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Wed, 26 Feb 2025 17:25:09 +0000 Subject: [PATCH] ci: Handle dnf packages in bootstrap role --- tests/image_prep/roles/bootstrap/templates/bootstrap.sh.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/image_prep/roles/bootstrap/templates/bootstrap.sh.j2 b/tests/image_prep/roles/bootstrap/templates/bootstrap.sh.j2 index daffa178..c5a35a2b 100644 --- a/tests/image_prep/roles/bootstrap/templates/bootstrap.sh.j2 +++ b/tests/image_prep/roles/bootstrap/templates/bootstrap.sh.j2 @@ -5,6 +5,8 @@ set -o nounset if command -v apt-get; then apt-get -y update apt-get -y --no-install-recommends install {{ bootstrap_packages | join(' ') }} +elif command -v dnf; then + dnf -y install {{ bootstrap_packages | join(' ') }} elif command -v yum; then yum -y install {{ bootstrap_packages | join(' ') }} else