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

[object-store/composefs] File timestamps not preserved #837

Closed
ehdis opened this issue Oct 18, 2024 · 1 comment
Closed

[object-store/composefs] File timestamps not preserved #837

ehdis opened this issue Oct 18, 2024 · 1 comment

Comments

@ehdis
Copy link

ehdis commented Oct 18, 2024

While playing with a bootc system I noticed that the timestamps of files are mostly/all set to "Jan 1 1970" (ls -la /usr/).
For instance - verifying a installed package results in

# rpm -V bash |head
.......T.  c /etc/skel/.bash_logout
.......T.  c /etc/skel/.bash_profile
.......T.  c /etc/skel/.bashrc
.......T.    /usr/bin/alias
.......T.    /usr/bin/bash
.......T.    /usr/bin/bashbug-64
.......T.    /usr/bin/bg
.......T.    /usr/bin/cd
.......T.    /usr/bin/command
.......T.    /usr/bin/fc

# ls -la /usr/bin/bash
-rwxr-xr-x. 1 root root 1389072 Jan  1  1970 /usr/bin/bash

I would assume that the object-store/composefs also provides the timestamps in addition to the xattr metadata, not?

@cgwalters
Copy link
Collaborator

Hi yes, currently the container stack goes through ostree which canonicalizes timestamps to zero. Then we turn the ostree into a composefs.

#20 is basically tracking significantly shrinking the role of ostree from this equation, so marking as a duplicate.

@cgwalters cgwalters closed this as not planned Won't fix, can't repro, duplicate, stale Oct 19, 2024
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

2 participants