Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(pkg/driver): do not call FixupKernel when building drivers. #373

Merged
merged 2 commits into from
Dec 12, 2023

Conversation

FedeDP
Copy link
Contributor

@FedeDP FedeDP commented Dec 12, 2023

What type of PR is this?

/kind bug

Any specific area of the project related to this PR?

/area library

What this PR does / why we need it:

Moreover, call return f.generic.FixupKernel(kr) in flatcar FixupKernel.

Which issue(s) this PR fixes:

Fixes #372

Special notes for your reviewer:

@FedeDP
Copy link
Contributor Author

FedeDP commented Dec 12, 2023

/milestone v0.7.0

@poiana poiana added this to the v0.7.0 milestone Dec 12, 2023
@poiana poiana added the size/M label Dec 12, 2023
@@ -178,7 +178,7 @@ func Build(ctx context.Context,
if err != nil {
return "", err
}
path, err := driverType.Build(ctx, printer, d.FixupKernel(kr), driverName, driverVer, env)
path, err := driverType.Build(ctx, printer, kr, driverName, driverVer, env)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixing up the kenrel is only useful when downloading.

_, err := exec.CommandContext(ctx, "/bin/bash", "-c", flatcarRelocateScript).Output()
out, err := exec.CommandContext(ctx, "/bin/bash", "-c", flatcarRelocateScript).Output()
if err != nil {
printer.DefaultText.Print(string(out))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Print the error in case this step fails.

@FedeDP
Copy link
Contributor Author

FedeDP commented Dec 12, 2023

/hold

It is indeed only useful to fixup the download url for given distro.

Signed-off-by: Federico Di Pierro <[email protected]>
…on in printenv command.

Signed-off-by: Federico Di Pierro <[email protected]>
@FedeDP FedeDP force-pushed the fix/avoid_fixup_kernel_build branch from 74d7d97 to 69a6df7 Compare December 12, 2023 12:21
@FedeDP
Copy link
Contributor Author

FedeDP commented Dec 12, 2023

/unhold

@poiana
Copy link
Contributor

poiana commented Dec 12, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: FedeDP, leogr

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana poiana merged commit 256e8bf into main Dec 12, 2023
14 checks passed
@poiana poiana deleted the fix/avoid_fixup_kernel_build branch December 12, 2023 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

falco-driver-loader docker image fails to build on Flatcar Container Linux
3 participants