-
Notifications
You must be signed in to change notification settings - Fork 786
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
In a container, try to register binfmt_misc #5732
Conversation
0933edd
to
5f92089
Compare
81b6534
to
4aedfc1
Compare
return fmt.Errorf("looking for binfmt.d configuration in %q: %w", searchDir, err) | ||
} | ||
for _, conf := range globs { | ||
f, err := os.Open(conf) |
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.
Should we only be doing this if the image has different ARCH then the local arch?
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.
Sure. At that point we're too far from the CLI to make it something that can be manually controlled very easily, but then maybe we're fine without that.
f3a7b41
to
2e91082
Compare
If we're running a command in a working container whose platform doesn't match our own, attempt to register any emulators for which we find configurations of the type included in Fedora's qemu-user-static packages. Signed-off-by: Nalin Dahyabhai <[email protected]>
2e91082
to
baf91f2
Compare
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: giuseppe, nalind 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 |
Oops, forgot I left a hold on this. |
What type of PR is this?
/kind feature
What this PR does / why we need it:
If we're running a command in a working container whose platform doesn't match our own, attempt to register any emulators for which we find configurations of the type included in Fedora's qemu-user-static packages.
How to verify it
In-container tests, provided the CI node is new enough, will start being able to use emulation if they couldn't before.
Which issue(s) this PR fixes:
None
Special notes for your reviewer:
Does this PR introduce a user-facing change?