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

Multiple /var bugs #598

Closed
cgwalters opened this issue Feb 8, 2024 · 2 comments
Closed

Multiple /var bugs #598

cgwalters opened this issue Feb 8, 2024 · 2 comments

Comments

@cgwalters
Copy link
Member

First, we aren't handling hardlinks, see coreos/rpm-ostree#4820

A simple reproducer is

FROM quay.io/centos-bootc/centos-bootc:stream
RUN mkdir -p /var/lib && echo hello world > /var/lib/foo && ln /var/lib/foo{,2}

The second problem is that our usage of C+ in ostreedev/ostree#3103 isn't in c9s systemd.

One thing I think we could probably do here is synthesize distinct tmpfiles.d snippets instead for the subdirectories of /var instead of having the toplevel.

Alternatively...it is tempting here to try to match the semantics of docker volumes, pretend like the base image has VOLUME /var. Then the idea is that the content from the container is only populated on initial deployment - we don't do any tmpfiles.d stuff.

The more I think about the more I like that.

@cgwalters
Copy link
Member Author

xref systemd/systemd@30e59a0

@cgwalters
Copy link
Member Author

ostreedev/ostree#3166

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

No branches or pull requests

1 participant