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 }