-
Notifications
You must be signed in to change notification settings - Fork 27
Fix for /var content (ostreedev PR #569) doesn't seem to be in the latest centos-bootc-dev base image #140
Comments
The short version is you can just drop Just did ostreedev/ostree-rs-ext#584 to fully codify this. |
Removed the ostree commit, everything built fine, can start / stop / modify the running container, including more changes to /var once running. Thanks! |
We need to try to re-land #186 again, once osbuild/bootc-image-builder#18 is fixed |
That's a related problem, but the real issue here is that the change in ostreedev/ostree#3103 doesn't work on c9s because systemd there doesn't understand Probably the simplest thing is to change ostree-ext to synthesize tmpfiles.d snippets instead, i.e. instead of a global This would also fix a cosmetic issue of a conflict between our |
OK, I've verified that with the latest changes from ostreedev/ostree#3166 and ostreedev/ostree-rs-ext#602 that have now landed in the latest dev image a layered httpd example works when run through bib. |
Local testing on the reproducer works great, thanks! |
Thanks so much for testing this! |
I'm running into an issue that I can't tell if it's a local problem with what I'm doing or something else. I didn't notice until I booted from the derived container and nmcli was complaining about dbus files. In the derived container with the simple postgres install, i wind up with a Output of podman images /var/run of the base container
/var/run of the derived container immediately after build
Containerfile
|
From reading the linked PRs I think i see what's happening but not why. In the base image,
There's a tmpfile.d config that creates the directory for postgresql: Looks like the tmpfile definition for postgres is interfering with the I tried with httpd like you did and it works fine with a similar tmpfile.d config for httpd
|
Hmm not having And yep, I see And yep I see, the problem is that the RPM includes |
I looked for it in the rpm file list first and missed it somehow.. oh well :) Tested the postgresql reproducer with the suggested workaround and it works as it should. The tmpfile.d config shipped in the package works, and /var/run is properly linked. |
I believe we've done everything we can do in the base image for this issue now. |
Intalling Postgres in the latest centos-bootc-dev base container fails on the ostree commit due to content being placed in /var/lib by the rpm install. This container should include the code from ostreedev PR #569
Error from podman build:
Simple containerfile to reproduce
Output of podman images
quay.io/centos-bootc/centos-bootc-dev stream9 96188766724f About an hour ago 1.45 GB
ostree info from inside container:
bash-5.1# ostree --version
The text was updated successfully, but these errors were encountered: