Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Commit

Permalink
Fixed stupid compile time issue (#54)
Browse files Browse the repository at this point in the history
Co-authored-by: ggilligan <[email protected]>
  • Loading branch information
ggilligan12 and ggilligan authored Nov 10, 2022
1 parent 17cbf66 commit 872310e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/operatingsystem/amazonlinux2/kernel-package.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func addKernelReleaseAndVersionAndMachine(dockerClient *docker.Client, kp *opera
func findKernelSrcPath(dockerClient *docker.Client, kernelSrcsVol operatingsystem.Volume, name string) (string, error) {
out, err := dockerClient.Run(
&docker.RunOpts{
Image: AmazonLinux2Image,
Image: amazonLinux2Image,
Entrypoint: []string{"find"},
Cmd: []string{"/usr/src/", "-name", "*" + name + "*", "-type", "d"},
Volumes: map[operatingsystem.Volume]string{
Expand All @@ -149,7 +149,7 @@ func findKernelSrcPath(dockerClient *docker.Client, kernelSrcsVol operatingsyste
func getKernelRelease(dockerClient *docker.Client, kernelSrcsVol operatingsystem.Volume, kernelSrcPath string) (string, error) {
out, err := dockerClient.Run(
&docker.RunOpts{
Image: FalcoDriverLoaderImage,
Image: falcoDriverLoaderImage,
Entrypoint: []string{"/bin/bash"},
Cmd: []string{"-c", "make kernelrelease | tail -n1"},
Volumes: map[operatingsystem.Volume]string{
Expand All @@ -168,7 +168,7 @@ func getKernelRelease(dockerClient *docker.Client, kernelSrcsVol operatingsystem
func getKernelVersion(dockerClient *docker.Client, kernelSrcsVol operatingsystem.Volume, kernelSrcPath string) (string, error) {
out, err := dockerClient.Run(
&docker.RunOpts{
Image: FalcoDriverLoaderImage,
Image: falcoDriverLoaderImage,
Entrypoint: []string{"/bin/bash"},
Cmd: []string{"-c", "find /usr/src -name compile.h | grep 'generated/compile.h' | xargs grep -ho UTS_VERSION.* | cut -f2 -d\\\""},
Volumes: map[operatingsystem.Volume]string{
Expand All @@ -187,7 +187,7 @@ func getKernelVersion(dockerClient *docker.Client, kernelSrcsVol operatingsystem
func getKernelMachine(dockerClient *docker.Client, kernelSrcsVol operatingsystem.Volume, kernelSrcPath string) (string, error) {
out, err := dockerClient.Run(
&docker.RunOpts{
Image: FalcoDriverLoaderImage,
Image: falcoDriverLoaderImage,
Entrypoint: []string{"/bin/bash"},
Cmd: []string{"-c", "find /usr/src -name compile.h | grep 'generated/compile.h' | xargs grep -ho UTS_MACHINE.* | cut -f2 -d\\\""},
Volumes: map[operatingsystem.Volume]string{
Expand Down

0 comments on commit 872310e

Please sign in to comment.