Skip to content

Conversation

@dfr
Copy link
Contributor

@dfr dfr commented Nov 17, 2025

This was not working when emulating Linux container images on FreeBSD. The code to handle host devices on FreeBSD relies on the container having a devfs mount. Unfortunately, the Linux emulation code which adds this was happening after the host device handling. This changes the logic so that host device management happens after Linux emulation.

Does this PR introduce a user-facing change?

Fix adding host devices to emulated Linux containers on FreeBSD.

This was not working when emulating Linux container images on FreeBSD.
The code to handle host devices on FreeBSD relies on the container
having a devfs mount. Unfortunately, the Linux emulation code which adds
this was happening after the host device handling. This changes the
logic so that host device management happens after Linux emulation.

Signed-off-by: Doug Rabson <[email protected]>
Copy link
Member

@lsm5 lsm5 left a comment

Choose a reason for hiding this comment

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

LGTM

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 17, 2025
netgate-git-updates pushed a commit to pfsense/FreeBSD-ports that referenced this pull request Nov 17, 2025
Thanks Doug Rabson for his review and an additional patch, that's also
heading upstream, containers/podman#27545

Approved by:	dfr (maintainer)
Reviewed by:	dfr (maintainer)
ChangeLog:	containers/podman@v5.6.2...v5.7.0
PR:		291014

Sponsored by:	tipi.work
@baude
Copy link
Member

baude commented Nov 17, 2025

the code lgtm, but i wonder if it would be prudent to add a test of any kind to prevent regressions in the future?

@mheon
Copy link
Member

mheon commented Nov 17, 2025

/approve
LGTM for reference. If we decide this doesn't need tests, it's mergable now.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 17, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dfr, lsm5, mheon

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

@baude baude added the No New Tests Allow PR to proceed without adding regression tests label Nov 18, 2025
@baude
Copy link
Member

baude commented Nov 18, 2025

Ill override and restart tests for now. If we decide that it should have them, we can remove the label.

@dfr
Copy link
Contributor Author

dfr commented Nov 18, 2025

Ill override and restart tests for now. If we decide that it should have them, we can remove the label.

The best test for this would be a FreeBSD-only system test. I do have many of the Podman system tests working on the platform but enabling them for CI in some form was put on hold partly due to the lack of FreeBSD official base images (#19788). We now have official images (https://github.com/orgs/freebsd/packages, https://hub.docker.com/u/freebsd) so perhaps we can revisit that idea.

@baude
Copy link
Member

baude commented Nov 20, 2025

LGTM then

@baude baude merged commit f526c37 into containers:main Nov 20, 2025
78 of 79 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. No New Tests Allow PR to proceed without adding regression tests release-note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants