-
Notifications
You must be signed in to change notification settings - Fork 60
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
Conversation
/milestone v0.7.0 |
@@ -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) |
There was a problem hiding this comment.
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)) |
There was a problem hiding this comment.
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.
/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]>
74d7d97
to
69a6df7
Compare
/unhold |
[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 |
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: