Skip to content

rhcos-toolbox: update to mirror containers/toolbox#90

Merged
prestist merged 1 commit into
coreos:mainfrom
prestist:ocp-56964
Nov 10, 2025
Merged

rhcos-toolbox: update to mirror containers/toolbox#90
prestist merged 1 commit into
coreos:mainfrom
prestist:ocp-56964

Conversation

@prestist

Copy link
Copy Markdown
Contributor

A bug was reported downstream while installing dnf package in toolbox resutled in OStree issue.
Follow containers/toolbox configuration to avoid this error.

Relates to: https://issues.redhat.com/browse/OCPBUGS-56964

@prestist prestist marked this pull request as draft October 23, 2025 21:33
@prestist

Copy link
Copy Markdown
Contributor Author

The /run subdirectory changes are the critical fix for OCPBUGS-56964, the other changes are to mirror upstream containers/toolbox.

@prestist prestist marked this pull request as ready for review October 29, 2025 15:15

@travier travier left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Can you link to where you found the options that containers/toolbox uses? Thanks

@prestist

prestist commented Nov 5, 2025

Copy link
Copy Markdown
Contributor Author

I talked to @aaradhak during standup and he was running into issues with -dns none\

Im not sure if we should mirror the entirety of the arguments that containers/toolbox uses, as a lot of them are conditional and distilling them into a flat object like this is going to cause issues.

The bug would be fixed just with the explicit run bind mounts so I am thinking about dropping all else as it might introduce issues depending on env.

https://github.com/containers/toolbox/blob/main/src/cmd/create.go#L426
https://github.com/containers/toolbox/blob/main/src/cmd/create.go#L450

@aaradhak

aaradhak commented Nov 5, 2025

Copy link
Copy Markdown
Member

-dns none
The DNS resolution inside the toolbox container made it impossible to install packages

With regards to volume mounts for directories, I encountered few errors for the directories mentioned

podman create fails with:
Error: statfs /run/systemd/resolve: no such file or directory
Error: statfs /var/lib/flatpak: no such file or directory

  --volume /run/libvirt:/run/libvirt \            
  --volume /run/systemd/resolve:/run/systemd/resolve \ 
  --volume /var/lib/flatpak:/var/lib/flatpak \      
  --volume /var/lib/libvirt:/var/lib/libvirt \   
  

I talked to @aaradhak during standup and he was running into issues with -dns none\

Im not sure if we should mirror the entirety of the arguments that containers/toolbox uses, as a lot of them are conditional and distilling them into a flat object like this is going to cause issues.

The bug would be fixed just with the explicit run bind mounts so I am thinking about dropping all else as it might introduce issues depending on env.

https://github.com/containers/toolbox/blob/main/src/cmd/create.go#L426 https://github.com/containers/toolbox/blob/main/src/cmd/create.go#L450

A bug was reported downstream while installing dnf
package in toolbox resutled in OStree issue.

Follow containers/toolbox configuration to avoid this error.

Relates to: https://issues.redhat.com/browse/OCPBUGS-56964
@prestist

prestist commented Nov 6, 2025

Copy link
Copy Markdown
Contributor Author

@aaradhak can you test the latest for me and let me know if this enables dnf but not issues this time ?

@aaradhak

aaradhak commented Nov 7, 2025

Copy link
Copy Markdown
Member

Sure will run another test

@aaradhak

aaradhak commented Nov 7, 2025

Copy link
Copy Markdown
Member

I tested it again and the dnf install seemed to work without any issue.

@prestist prestist merged commit bbcef7d into coreos:main Nov 10, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants