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 }