From ea2bc318d1f915418541f048c76d4e11d5ea2cf2 Mon Sep 17 00:00:00 2001 From: Hana Watson Date: Wed, 1 Nov 2023 16:57:26 +0000 Subject: [PATCH] Try sourcing kernelRelease from kernelVersion and kernelMachine --- pkg/operatingsystem/amazonlinux2/kernel-package.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/operatingsystem/amazonlinux2/kernel-package.go b/pkg/operatingsystem/amazonlinux2/kernel-package.go index 16984e9..d06603c 100644 --- a/pkg/operatingsystem/amazonlinux2/kernel-package.go +++ b/pkg/operatingsystem/amazonlinux2/kernel-package.go @@ -107,11 +107,11 @@ func addKernelReleaseAndVersionAndMachine(dockerClient *docker.Client, kp *opera return err } - kernelRelease, err := getKernelRelease(dockerClient, kp.KernelSources, kernelSrcPath) + /*kernelRelease, err := getKernelRelease(dockerClient, kp.KernelSources, kernelSrcPath) if err != nil { return err } - kp.KernelRelease = kernelRelease + kp.KernelRelease = kernelRelease*/ kernelVersion, err := getKernelVersion(dockerClient, kp.KernelSources, kernelSrcPath) if err != nil { @@ -125,6 +125,8 @@ func addKernelReleaseAndVersionAndMachine(dockerClient *docker.Client, kp *opera } kp.KernelMachine = kernelMachine + kp.KernelRelease = kernelVersion + "." + kernelMachine + return nil }