Skip to content

Commit

Permalink
Try sourcing kernelRelease from kernelVersion and kernelMachine
Browse files Browse the repository at this point in the history
  • Loading branch information
hanawatson authored Nov 1, 2023
1 parent 145a4c8 commit ea2bc31
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/operatingsystem/amazonlinux2/kernel-package.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -125,6 +125,8 @@ func addKernelReleaseAndVersionAndMachine(dockerClient *docker.Client, kp *opera
}
kp.KernelMachine = kernelMachine

kp.KernelRelease = kernelVersion + "." + kernelMachine

return nil
}

Expand Down

0 comments on commit ea2bc31

Please sign in to comment.