Skip to content

Commit

Permalink
Retrieve kernelRelease from kernel package name and kernelMachine
Browse files Browse the repository at this point in the history
  • Loading branch information
hanawatson authored Nov 1, 2023
1 parent 7f78488 commit 516bfcb
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 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,6 +119,8 @@ func addKernelReleaseAndVersionAndMachine(dockerClient *docker.Client, kp *opera
}
kp.KernelMachine = kernelMachine

kp.KernelRelease = kp.Name + "." + kp.kernelMachine

return nil
}

Expand Down

0 comments on commit 516bfcb

Please sign in to comment.