Replies: 2 comments 4 replies
-
This would require us to diff the image for each command to figure out the added files, seems like a potentially expensive operation. I really think there's no way to do this but to apply it to everything. |
Beta Was this translation helpful? Give feedback.
4 replies
-
As we have now a good idea for an alternative approach (clamp mtime of newer files only) which can be acted upon I created a new issue from this discussion: #2635 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are currently working on getting some of our projects reproducible, one of which uses mkosi. While the source date epoch settings seems to work (at an initial glance) it is a quite rough/overkill solution. We have a few places in our software where file dates are checked which we can do without for now and should ideally be replaced by some better mechanism but nevertheless setting the mtime of every file is still quite drastic.
Ideally, only the mtime of files generated by mkosi should be changed (e.g. sd-firstboot, sd-tmpfiles, Ssh= config file etc.), and even that should be configurable. This way if someone already has a reproducible build process they can utilize that in their build script and not have it ruined by mkosi.
I created this as a discussion as I think this is not something directly actionable and a good design should be though out first. Should this be opt-in or opt-out, should it be configurable for everything (all files), only files generated by mkosi internally (sd-firstboot etc.), separate for each mkosi.* script and so on...?
Beta Was this translation helpful? Give feedback.
All reactions