From 70ac88a07fd9a2467b5037c66e3d258f245bf701 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Tue, 9 May 2023 20:16:28 +0000 Subject: [PATCH] No libdtrace-ctf on el8 --- kernel.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel.go b/kernel.go index ca93533..ede5bf9 100644 --- a/kernel.go +++ b/kernel.go @@ -425,7 +425,9 @@ func generateBaseDockerImage(registry string, commands []config.DockerCommand, d += "RUN yum -y update\n" d += "RUN yum -y groupinstall 'Development Tools'\n" d += "RUN yum -y install linux-firmware grubby\n" - d += "RUN yum -y install libdtrace-ctf\n" + if sk.DistroRelease <= "7" { + d += "RUN yum -y install libdtrace-ctf\n" + } default: err = fmt.Errorf("%s not yet supported", sk.DistroType.String()) return