diff --git a/pkg/operatingsystem/amazonlinux2/kernel-package.go b/pkg/operatingsystem/amazonlinux2/kernel-package.go index 2b8d577..580e97d 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,6 +119,8 @@ func addKernelReleaseAndVersionAndMachine(dockerClient *docker.Client, kp *opera } kp.KernelMachine = kernelMachine + kp.KernelRelease = kp.Name + "." + kp.kernelMachine + return nil }