From 7c9a1b4f09203268497300e3235b73d19ee09e5b Mon Sep 17 00:00:00 2001 From: Hana Watson Date: Wed, 1 Nov 2023 17:05:44 +0000 Subject: [PATCH] Use correct kernelName instead of kernelVersion --- pkg/operatingsystem/amazonlinux2/kernel-package.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pkg/operatingsystem/amazonlinux2/kernel-package.go b/pkg/operatingsystem/amazonlinux2/kernel-package.go index d06603c..46291ff 100644 --- a/pkg/operatingsystem/amazonlinux2/kernel-package.go +++ b/pkg/operatingsystem/amazonlinux2/kernel-package.go @@ -107,12 +107,6 @@ func addKernelReleaseAndVersionAndMachine(dockerClient *docker.Client, kp *opera return err } - /*kernelRelease, err := getKernelRelease(dockerClient, kp.KernelSources, kernelSrcPath) - if err != nil { - return err - } - kp.KernelRelease = kernelRelease*/ - kernelVersion, err := getKernelVersion(dockerClient, kp.KernelSources, kernelSrcPath) if err != nil { return err @@ -125,7 +119,7 @@ func addKernelReleaseAndVersionAndMachine(dockerClient *docker.Client, kp *opera } kp.KernelMachine = kernelMachine - kp.KernelRelease = kernelVersion + "." + kernelMachine + kp.KernelRelease = kp.Name + "." + kp.KernelMachine return nil }