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

systemd-repart does not respect SOURCE_DATE_EPOCH when creating directories in the temporary local OS tree #32117

Closed
msanft opened this issue Apr 5, 2024 · 0 comments · Fixed by #32502
Labels
bug 🐛 Programming errors, that need preferential fixing repart

Comments

@msanft
Copy link
Contributor

msanft commented Apr 5, 2024

systemd version the issue has been seen with

255

Used distribution

NixOS 24.05

Linux kernel version used

6.8.2

CPU architectures issue was seen on

x86_64

Component

systemd-repart

Expected behaviour you didn't see

systemd-repart should respect the SOURCE_DATE_EPOCH environment variable when creating files / directories in the local OS tree through xopenat_lock_full with O_CREAT, as it happens here when populating the local temporary tree.

Unexpected behaviour you saw

systemd-repart creates the directories / files in the temporary local OS tree with undeterministic timestamps (i.e. atime and mtime), causing irreproducible image builds.

Steps to reproduce the problem

I've created a repository with a minimal reproduction example here:

https://github.com/msanft/systemd-repart-repro-bug

Additional program output to the terminal or log subsystem illustrating the issue

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Programming errors, that need preferential fixing repart
Development

Successfully merging a pull request may close this issue.

1 participant