From 9b4d7aca9edbdcc4910a212a5de35eb074efd399 Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Fri, 4 Aug 2023 15:35:19 +0200 Subject: [PATCH] Implement OracleLinux 7-9 64bit support --- lib/beaker-hostgenerator/data.rb | 5 +++++ lib/beaker-hostgenerator/hypervisor/docker.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/beaker-hostgenerator/data.rb b/lib/beaker-hostgenerator/data.rb index 60538fa8..a96c670b 100644 --- a/lib/beaker-hostgenerator/data.rb +++ b/lib/beaker-hostgenerator/data.rb @@ -1090,6 +1090,11 @@ def generate_osinfo yield ["oracle#{release}-64", "el-#{release}-x86_64"] end + # OracleLinux + (7..9).each do |release| + yield ["oracle#{release}-64", "el-#{release}-x86_64"] + end + # Scientific Linux yield ['scientific7-64', 'el-7-x86_64'] diff --git a/lib/beaker-hostgenerator/hypervisor/docker.rb b/lib/beaker-hostgenerator/hypervisor/docker.rb index f6a150fb..5f180b56 100644 --- a/lib/beaker-hostgenerator/hypervisor/docker.rb +++ b/lib/beaker-hostgenerator/hypervisor/docker.rb @@ -49,7 +49,7 @@ def image(ostype) def image_commands(ostype) case ostype - when /^(almalinux|centos|rocky)/ + when /^(almalinux|centos|rocky|oracle)/ [ 'cp /bin/true /sbin/agetty', el_package_install_command(ostype.delete_prefix(Regexp.last_match(1)).to_i),