Skip to content

Commit

Permalink
Use correct kernelName instead of kernelVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
hanawatson authored Nov 1, 2023
1 parent ea2bc31 commit 7c9a1b4
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions pkg/operatingsystem/amazonlinux2/kernel-package.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}
Expand Down

0 comments on commit 7c9a1b4

Please sign in to comment.