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: ensure /var/run is a symlink to /run #227

Closed
wants to merge 1 commit into from

Conversation

LukeShortCloud
Copy link

No description provided.

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Dec 31, 2024
@LukeShortCloud
Copy link
Author

The Playtron team has been testing using the ghcr.io/ublue-os/ucore-minimal:stable-nvidia image being installed to a raw image file via both Anaconda and, separately, via bootc-image-builder. Both result in failed services because they are unable to communicate with the system's DBus interface. We found that, for some reason, /run and /var/run were both different directories. By testing a change of /var/run to be a symlink that points to /run via a layered UBlue image, services are now working.

@LukeShortCloud
Copy link
Author

We found that underlying issue was that installing some packages generated content in /var/run, thus making a new directory because it did not exist before. bootc automatically creates the /var/run to /run symlink only if /var/run does not exist. Otherwise, it will leave it as-is. This explains why Bluefin and others never ran into this problem. Using rm -r -f /var/run or ostree container commit at the end of our customized Containerfile fixed the issue. Apologies for the noise!

@LukeShortCloud
Copy link
Author

By the way, on a related note, we were previously using ostree container commit everywhere but then dropped it as part of our transition to bootc due to the latest recommendation:

"You may find some references to this [ostree container commit command]; it is no longer very useful and is not recommended."

https://containers.github.io/bootc/bootc-images.html#the-ostree-container-commit-command

I guess the "correct" way forward is just to have RUN rm -r -f /var/run at the end of the Containerfile (or along with related commands that generate it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant